Create variable containing quantile categories
xtile newvar = exp [if] [in] [weight] [, xtile_options]
Setup
. webuse bp1, clear
List variable bp
. list bp, sep(4)
Create variable quart containing the quartiles of bp
. xtile quart = bp, nq(4)
List variables bp and quart
. list bp quart, sep(4)


雷达卡



京公网安备 11010802022788号







