Hi y'all,
I'm working with a variable that is a numerical but is formatted as a float. The numbers are very large, up to the hundreds of millions, but when I use the univar or sum command, i'm losing precision on my 5 number summary. For example:
part of univar output:
Mean S.D. Min 25 Mdn .75 Max
----------------------------------------------------------------
3.6e+07 6.4e+07 548.48 3.5e+06 1.0e+07 3.5e+07 4.0e+08
part of sum output:
50% 1.00e+07 Mean 3.60e+07
I'm able to get precise means and SDs when I use the tab command (for the above example, mean=35985642 & SD=63948306), so right now the issue is getting precise medians. The best idea I could come up with is reformatting the variable from float to long. It's currently:
storage display
type format
--------------------
float %9.0f
But I'm having difficulty figuring out how to do that. I'm open to any suggestions, even outside of reformatting. I'm using Stata Version 12.1.
Thanks for your help!
I'm working with a variable that is a numerical but is formatted as a float. The numbers are very large, up to the hundreds of millions, but when I use the univar or sum command, i'm losing precision on my 5 number summary. For example:
part of univar output:
Mean S.D. Min 25 Mdn .75 Max
----------------------------------------------------------------
3.6e+07 6.4e+07 548.48 3.5e+06 1.0e+07 3.5e+07 4.0e+08
part of sum output:
50% 1.00e+07 Mean 3.60e+07
I'm able to get precise means and SDs when I use the tab command (for the above example, mean=35985642 & SD=63948306), so right now the issue is getting precise medians. The best idea I could come up with is reformatting the variable from float to long. It's currently:
storage display
type format
--------------------
float %9.0f
But I'm having difficulty figuring out how to do that. I'm open to any suggestions, even outside of reformatting. I'm using Stata Version 12.1.
Thanks for your help!
Comment