Does anyone know the difference between the following two commands?
* Continuous variable X (e.g. income, age)
Do both commands create exactly the same variable (quartile)?
Best wishes,
David
Version: Stata/IC 13.0
Code:
egen variable_name = cut(X), group(4) xtile variable_name = X, nq(4)
Do both commands create exactly the same variable (quartile)?
Best wishes,
David
Version: Stata/IC 13.0
Comment