Thanks, Svend. The only hesistation I have is that I intend to use
pweight, but the -tabulate - command doesn't compromise with the pweight.
Ying
> Ying used -table- and got the following:
>
> calmon | mean(expov2) N(expov2)
> ----------+---------------------------
> 2000 Oct | .0634935 1.80e+07
> 2000 Nov | .0559704 3.61e+07
> 2000 Dec | .0599429 5.41e+07
> ...
>
> Question: How to get N(expov2) display nicely?
>
> ----------------------------------------
>
> I couldn't make it, even with the cellwidth(12) option; formatting seems
> not to affect the N() column:
>
> . sysuse auto
> . gen x=1000000
> . table foreign [fweight=x] , c(mean mpg n mpg) cellwidth(12)
>
> --------------------------------------
> Car type | mean(mpg) N(mpg)
> ----------+---------------------------
> Domestic | 19.8269 5.20e+07
> Foreign | 24.7727 2.20e+07
> --------------------------------------
>
> Alternative: -tabulate, summarize- :
>
> . tabulate foreign [fweight=x] , summarize(mpg)
>
> | Summary of Mileage (mpg)
> Car type | Mean Std. Dev. Freq. Obs.
> ------------+------------------------------------------------
> Domestic | 19.826923 4.6974673 52000000 52000000
> Foreign | 24.772727 6.4591854 22000000 22000000
> ------------+------------------------------------------------
> Total | 21.297297 5.746279 74000000 74000000
>
> Hope this helps.
>
> Svend
>
> ________________________________________________________
>
> Svend Juul
> Institut for Folkesundhed, Afdeling for Epidemiologi
> (Institute of Public Health, Department of Epidemiology)
> Vennelyst Boulevard 6
> DK-8000 Aarhus C, Denmark
> Phone, work: +45 8942 6090
> Phone, home: +45 8693 7796
> Fax: +45 8613 1580
> E-mail: [email protected]
> _________________________________________________________
>
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/