Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Computing z-scores with zanthro Issue


From   Patrick Abi Nader <[email protected]>
To   [email protected]
Subject   st: Computing z-scores with zanthro Issue
Date   Tue, 11 Feb 2014 07:09:48 -0800

hello Stata users,

I am trying to compute z-scores for children's BMI data. I found the
zanthro package and downloaded it.
this is the code that I am using and I believe it is the correct one

"egen zbmi = zanthro(v3_bmi,ba,US), xvar(v3_chd_ageyears)
gender(gender)gencode(m=1, f=2) ageunit(year)"

v3_bmi is my bmi variable, ba is the growth chart for 2-20 years old
in the US, v3_chd_ageyears, is child age in year, and my gender
variable is also included.
after I run the code this is the error that I have received:

"using data not sorted r(5);"

So I sorted the data on the BMI variable and subsequently on the age
and ID variables and it still gave me the same error. Does anyone have
any suggestions?

Thanks
Patrick
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index