Hello All,
After "stset" I have the time-elapsed variable "_t". I would like to
"stsplit" data according to the percentiles of "_t", but dont know how to
put the percentile value in the numlist. Something which does not work (but
hopefully shows what I am aiming at) is
egen pmin=min(_t)
egen p25=pctile(_t), p(25)
egen pmax=max(_t)
stsplit age, at(`pmin'(1)`p25' `p25'(5)`pmax')
How can I make it work?
Thanks in advance,
Serguei Kaniovski
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/