Thank you and apologies for not mentioning at the outset that I am
using Stata 9.2 (and don't have access to anything else).
I am tried what you suggest for unfortunately am getting error
messages in several places and am no closer to figuring out how to
avoid the exponential format. When I try -gen
x=invnormal(uniform(10000000))- I get an error message 'invalid
syntax'. I then tried just -gen x=invnormal(10000000)- and that
doesn't get an error message, although I'm not sure if it's still
doing what is intended. - table id, contents(mean x)- just gives me an
empty table, as does the last line which I guess is the key one for my
purposes; perhaps this is related to the ivnormal problem.
Is there no simple way to just get a table which gives the actual
numbers not in exponential format?
Yours,
Sandy
On Fri, Aug 14, 2009 at 7:39 PM, Martin Weiss<[email protected]> wrote:
>
> <>
>
> Did you say anything about Stata 9.2? If not, you were supposed to, if yes,
> sorry. Replace the -runiform()- by -invnormal(uniform())- ...
>
>
>
>
> HTH
> Martin
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Sandra Rayman
> Sent: Freitag, 14. August 2009 19:36
> To: [email protected]
> Subject: Re: st: AW: numeric format
>
> Thank for for the prompt reply. I am unable to follow the suggested
> code exactly as the 'rnormal' part gives me an error message that it
> is an unknown function (perhaps because I am using Stata 9.2).
> However, looking through the rest of the suggested code I thought that
> the key part might be 'format(%11.0fc)', so I tried this but still
> without success. Specifically, I tried
> table date race [fweight = weight], format(%15.0fc) and several
> variations of this, but the numbers are still presented in exponential
> format. What am I missing here?
>
> Thanks for clarification or any other suggestions.
>
> Yours,
> Sandy
>
>
> 2009/8/14 Martin Weiss <[email protected]>:
>>
>> <>
>>
>>
>>
>> *************
>> clear*
>> set obs 10000
>>
>> gen x=rnormal(10000000)
>>
>> gen id =_n<=5000
>>
>> table id, contents(mean x)
>> table id, contents(mean x) /*
>> */ format(%11.0fc)
>> *************
>>
>>
>>
>> HTH
>> Martin
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [email protected]
>> [mailto:[email protected]] Im Auftrag von Sandra Rayman
>> Gesendet: Freitag, 14. August 2009 18:33
>> An: [email protected]
>> Betreff: st: numeric format
>>
>> Dear listers,
>>
>> This is my first question to Statalist, and I'm afraid it's a bit of a
>> basic one. I need a basic table of statistics and the problem I am
>> having is that the numbers are shown in exponential rather than
>> regular format. From the help function I read how to use the format
>> command but the problem remains.
>>
>> I am using survey data and just need a basic table of the number of
>> people, in each year, by race. The command I am using is:
>> table date race [fweight = weight], format(%15.0g)
>>
>> I have tried increasing the number in the format command more and more
>> (e.g. format(%18.0g)) but all that happens is that the columns get
>> wider and the numbers are shown as e.g. 1.16e+07 whereas I need the
>> full numbers. I know this should be easy, but from the help function
>> and statalist archive I can't figure out how to do it.
>>
>> yours,
>> Sandy
>> *
>> * 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/
>>
>>
>> *
>> * 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/
>>
>
> *
> * 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/
>
>
>
> *
> * 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/
>
*
* 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/