I apologize for posting a basic question.
I am trying to generate a categorical variable from a continuous variable. I
would like the category endpoints to be the 25% percentile, the 50% percentile,
the 75% percentile, and the 100% percentile.
I can do this interactively by typing tabstat var, stats(p25, p50, p75, max)
and then using the gen command to manually enter what the tabstat command
output. However, I would like to automate the process. Does anyone know the
code for this?
Any help would be much appreciated!!
-Lindsey Leininger
--
Lindsey Jeanne Leininger
Ph.D. student
University of Chicago, Harris School of Public Policy Studies
[email protected]
*
* 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/