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: xtile generates missing values


From   "Brent Fulton" <[email protected]>
To   <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index