_pctile sat, percentile(1 99)
_pctile math, percentile(1 99)
_pctile english, percentile(1 99)
_pctile grades, percentile(1 99)
global m "sat math english grades"
foreach v in $m{
drop if `v'<r(r1)
drop if `v'>r(r2)
}
gen rank=4 if highschol=="level1"
replace rank=3 if highschol=="level2"
replace rank=2 if highschol=="level3"
replace rank=1 if highschol=="level4"
gen other = sat-math-english
egen term=group(acyrstart acterm)
variable __000001 not found
r(111);
我的数据在附件里,不知道为什么会报错