Stata Summarize If. Summarize if rep78 less than 2. Otherwise it will do nothing.
Summarize if rep78 less than or equal to 2. Summarize for each variable the number of non missing values are used. In stata you can use different kinds of weights on your data.
So putting it all together the general syntax of the summarize command can be described as.
Sum sum age if you don t specify which variables sum should act on it will give you summary statistics for all the variables in the data set. Also see r cifor calculating the standard error and confidence intervals of the mean. Summarize if rep78 2. Putting age after sum tells it to only give you summary statistics for the age variable.
