Stata Summary By Group. Summarize v1 with frequency weight wvar summarize v1 fweight wvar menu statistics summaries tables and tests summary and descriptive statistics summary statistics 1. More precisely i m using the tapply function.
Statistics summaries tables and tests summary and descriptive statistics summary statistics description summarize calculates and displays a variety of univariate summary statistics. 2summarize summary statistics syntax summarize varlist if in weight. It is the most widely used measure of central tendency.
By default each case i e subject is given a weight of 1.
Summary statistics reported separately for each level of catvar by catvar. More precisely i m using the tapply function. In stata you can use different kinds of weights on your data. Foreign car type foreign price weight mpg rep78 domestic 6072 423 3317 115 19 82692 3 020833 foreign 6384 682 2315 909 24 77273 4 285714 total 6165 257 3019 459 21 2973 3 405797 more summary statistics can be requested via the statistics option.