Stata Summarize If. Summarize if rep78 equals 2. By default each case i e subject is given a weight of 1.
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. Summarize if rep78 greater than 2. Putting age after sum tells it to only give you summary statistics for the age variable.
By default each case i e subject is given a weight of 1.
Summary statistics for one quantitative variable over one categorical variable. If no varlist is speciļ¬ed summary statistics are calculated for all the variables in the dataset. First try sum summarize all by itself and then followed by age. In stata you can use different kinds of weights on your data.