[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: generating categorical variables
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 Jeanne Leininger
University of Chicago, Harris School of Public Policy Studies
* For searches and help try: