Given the data set, Find the average education level in the sample. What are the lowest and highest years of education?
Thus, I can find the min and max value of variable "educ". How to count the number of observations at the min and max value?
I know one method is: (0 is the min value)
Then I can count the numbers.
Do I have better methods that Stata can give me the number automatically?
Code:
summarize educ
I know one method is: (0 is the min value)
Code:
list educ if educ==0
Do I have better methods that Stata can give me the number automatically?
Comment