[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Hello STATA users,
I am trying to transform a variable v1 to values representing the
percentiles. This can be done by the xtile command in STATA.
However, I do not succeed in doing this separately for categories
defined by another variable v2.
It looked like xtile2 was the solution but it does not seem to work in
With SPSS the following command would do the job and automatically
create the variable pv1.
rank variables= v1 (a) by v2 /proportion /print=yes
However, I would prefer using STATA instead of switching between STATA
I would very much appreciate help with this.
* For searches and help try: