[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Deciles and Stata
I'm looking for help with a problem with stata and deciles.
I want to insert a new variable (NewVar) which is based on another variable
Here goes an example of my problem:
Ex. for the quartiles case (just for the sake of exposition, since I need
deciles...), I would like to be able to generate the NewVar variable based
on the quantiles of X's observations:
Is there a function or a way of doing this automatically? I've searched the
help files but found no solution to this problem...
* For searches and help try: