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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: AW: numeric format |

Date |
Fri, 14 Aug 2009 20:04:09 +0200 |

<> Sorry, but indeed you should mention that you are a 9.2 user. In this case, the command should be -invnormal(uniform())*10000000- The old -uniform- did not take any argument, but still insisted on the parentheses... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sandra Rayman Sent: Freitag, 14. August 2009 20:00 To: statalist@hsphsun2.harvard.edu Subject: Re: st: AW: numeric format 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<martin.weiss1@gmx.de> 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: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sandra Rayman > Sent: Freitag, 14. August 2009 19:36 > To: statalist@hsphsun2.harvard.edu > 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 <martin.weiss1@gmx.de>: >> >> <> >> >> >> >> ************* >> 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: owner-statalist@hsphsun2.harvard.edu >> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Sandra Rayman >> Gesendet: Freitag, 14. August 2009 18:33 >> An: statalist@hsphsun2.harvard.edu >> 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/ * * 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/

**References**:**st: numeric format***From:*Sandra Rayman <sandyrayman@googlemail.com>

**Re: st: AW: numeric format***From:*Sandra Rayman <sandyrayman@googlemail.com>

**Re: st: AW: numeric format***From:*Sandra Rayman <sandyrayman@googlemail.com>

- Prev by Date:
**Re: st: _robust and weights [WAS: ivreg2 results do not replicate from stata 9 to stata 11]** - Next by Date:
**Re: st: AW: numeric format** - Previous by thread:
**Re: st: AW: numeric format** - Next by thread:
**st: RE: Mahalanobis Distance and Clustering** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |