[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: xtiles....
> I've divided income and wealth variables into 5 equal
> quantiles using
> the xtile function, however, when I ask STATA to divide my education
> variable into 5 quantiles, it only gives me four values.
> The education
> variable is a continuous variable ranging from 1 through
> 17. Any ideas
> why it's not working?
Crosstabulate input and output.
. tab education <whatever>
You will see, I guess, that this is a side-effect
of tied values, given that the same input must map
to the same output.
With the auto data,
. xtile xrep78 = rep78, nq(5)
gives just 3 distinct quantiles, even
though there are 5 distinct (non-missing
* For searches and help try: