Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: xtile generates missing values


From   "Brent Fulton" <fultonb@berkeley.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: xtile generates missing values
Date   Tue, 24 Apr 2012 06:26:13 -0700

hi All,

I am using Stata 11, and the following command to generate percentiles
results in 1935 missing values out of 36,855 observations (or about 5%
missing). Neither totexp or wgt has missing values, so I am not sure what is
happening. Maybe missings are being generated at cut points? Is there a way
to avoid this?

xtile totexp_pct = totexp [pweight=wgt], n(20)

Note the same number missings is generated with the following command, so
doesn't seem like a cut point issue?

xtile totexp_pct2 = totexp [pweight=wgt], n(1000)

Thank you,
Brent Fulton
UC Berkeley

*
*   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/


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