Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: outreg2 Non-Zero Decimals


From   John Luke Gallup <jlgallup@pdx.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: outreg2 Non-Zero Decimals
Date   Fri, 28 Sep 2012 17:46:56 -0700

I am not sure what you are trying to do here.  I think you want to show decimal places (up to some maximum number, presumably) only if they are non-zero.  This seems odd to me since it may give a distorted picture of the number of significant digits if an accurate coefficient estimate happens to end in a zero.

-outreg-, and I think -outreg2-, allows you to specify any Stata-supported numerical format with the -bfmt- option.  There isn't any Stata format which shows just non-zero decimals however, so you would have to manually specify the number of decimals shown for each coefficient, which you can do with the -bdec- option.

John

On Sep 28, 2012, at 5:52 AM, mai7777 <mai7777@gmail.com> wrote:

> Hi,
> Is there a way on the -outreg2- command to impose the number of
> non-zero decimals. Using [dec(#)] dictates only the number of
> decimals, but they can be all zeros. Removing the bdec(#) sets auto
> digits which will yield a different number of digits in each line,
> which is not in publication format.
> 
> Thanks!
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index