Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: how to force outreg2 to use only sample and stnum mean question |
Date | Thu, 19 Dec 2013 17:43:29 +0000 |
<> If -sd- is not a variable in your dataset, that option will inevitably fail. Nick njcoxstata@gmail.com On 19 December 2013 17:33, Vlad Jiman <jimanvladvictor@gmail.com> wrote: > I'm doing a fixed effects panel regression on a sample of 276 out of a > population of 300. > > When I use the stats(mean sd) option for outreg2, I get the mean and > the sd for N rather than the sample only for each variable. > > However, if I use the sum option, I get the mean and sd only for the > sample (but then I don't get the coef and the se). How can I have the > coef, se, mean and sd just for the sample? > > On a separate note, stnum doesn't seam to recognize se, mean, or sd as > variables in the below command... why? (coef works). > > . outreg2 using myfile, stats(coef, se, mean, sd, N) stnum(replace sd > = sd*100) sideway see > variable sd not found > r(111); > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/