Stata Sum Command. See r table for a more flexible command that produces one two and n way tables of frequencies and a wide variety of summary statistics. 1 1 15 2.
See r table for a more flexible command that produces one two and n way tables of frequencies and a wide variety of summary statistics. That is sum will add up gh1 gh2 gh3 gh4 gh5 for observation 1 and then add gh1 gh2 gh3 gh4 gh5 for observation 2 and so on. Generate a n.
1 1 15 2.
To have it give you summary statistics for a single variable simply tell it which variable you want it to act on. Lena the function sum creates a running sum over all observations of the expression within. Stata s sum function creates the running sum whereas egen s total function creates a constant equal to the overall sum. In stata you can use different kinds of weights on your data.