Statalist


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

st: AW: cut points resulting from xtile


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: cut points resulting from xtile
Date   Tue, 21 Jul 2009 13:26:21 +0200

<> 



*************
clear*
//gen replicable data
set seed 1001
set obs 1000
gen x=rnormal()
//get xtile
xtile xtilex=x, nq(3)
//get corresponding pctiles
pctile pctilex=x, nq(3)
//see the cutpoints
ta pct
//see whether result correct
table xtilex, contents(freq min x max x)
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Miranda Kim
Gesendet: Dienstag, 21. Juli 2009 13:22
An: statalist@hsphsun2.harvard.edu
Betreff: st: cut points resulting from xtile

How can I extract the cut points resulting from xtile to know how to 
label the categories?
xtile vit3=vitalit, nq(3)
Thanks for your help!

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


*
*   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   |   What's new   |   Site index