Beginner question

allan89a

New Member
Hi, I'm new to Stata.

I'd like to ask how you get the summary statistics to display the full values when it's a large number (e.g. display 123123123123 for mean, sd, etc. instead of something like 12e+11).

Thanks for help!

bukharin

RoboStataRaptor
It probably depends on what you're using to generate the summary statistics. If you use -summarize- then the statistics are returned as scalars. You can see what's been returned using the command -return list-

For example:
Code:
. sysuse auto, clear
(1978 Automobile Data)

. summarize price

Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
price |        74    6165.257    2949.496       3291      15906

. return list

scalars:
r(N) =  74
r(sum_w) =  74
r(mean) =  6165.256756756757
r(Var) =  8699525.974268788
r(sd) =  2949.495884768919
r(min) =  3291
r(max) =  15906
r(sum) =  456229
As you can see, this gives you quite a lot more information than the original -summarize- command. You can then use -display- to format these numbers however you like. For example if I wanted to see the SD with 1 decimal place:

Code:
. display %2.1f r(sd)
2949.5
See -help format- to guide you in choosing a format that will suit your needs.