Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: computing percentages


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: computing percentages
Date   Wed, 28 Apr 2004 15:51:59 +0100

Multiply by 100? 

Nick 
n.j.cox@durham.ac.uk 

mertenmj
 
> I am using the following command:
> 
> g nonmetro=hmsa_r==2
> 
> g total=hmsa_r==1 | hmsa_r==2 | hmsa_r==3
> 
> gen pnonmetro=nonmetro/total 
> 
> I want the "pnonmetro" variable to be expressed in terms of 
> percentage, from the resulting nonmetro/total. How do I do this?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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