Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: scientific notation turn off


From   Doug Hess <douglasrhess@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: scientific notation turn off
Date   Tue, 24 Jan 2012 06:50:32 -0500

Is there a way to turn off scientific notation in general? For
instance, using the -codebook- command with the -detail- option it
will display -1.4619608 in the space in the output for the range of
values, but it won't display 144858 in the frequency section of the
report. Is there a way to alter this?

Thank you.

-Doug

Date: Mon, 23 Jan 2012 14:48:23 +0300
From: Abu Camara <abucamara@gmail.com>
Subject: Re: st: scientific notation turn off
Hi Maarten,
Thanks! It works perfectly.

On 23 January 2012 14:29, Maarten Buis <maartenlbuis@gmail.com> wrote:
> On Mon, Jan 23, 2012 at 12:18 PM, Abu Camara  wrote:
>> I am running the following tabulation but Stata gives the following
>> output in scientific notation
>> which I don't want. I want them non scientific notation.
>
> You can use the -format()- option to change the format, e.g.:
>
> *---------- begin example ---------------
> sysuse auto, clear
> replace price = price*1000
> table rep78, c(sum price)
> table rep78, c(sum price) format(%11.0g)
> *----------- end example ----------------
> (For more on examples I sent to the Statalist see:
> http://www.maartenbuis.nl/example_faq )
>
> Hope this helps,
> Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index