Bookmark and Share

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

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

st: RE: xtile generates missing values

From   Nick Cox <>
To   "''" <>
Subject   st: RE: xtile generates missing values
Date   Tue, 24 Apr 2012 14:55:44 +0100

Is -wgt- ever zero? 


-----Original Message-----
From: [] On Behalf Of Brent Fulton
Sent: 24 April 2012 14:26
Subject: st: xtile generates missing values

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:

*   For searches and help try:

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