Stata Sum Command. Summarize if rep78 equals 2. Sum instead of summarize tab instead of tabulate reg instead of regress.
Summarize if rep78 2. Lena the function sum creates a running sum over all observations of the expression within. Summarize tabulate regress etc.
Stata s sum function creates the running sum whereas egen s total function creates a constant equal to the overall sum.
When this default is used the sum of the weights will equal the number of observations. 4 10 15 5. Also see r cifor calculating the standard error and confidence intervals of the mean. Gen avgbp sum bp n.