Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Re: grading

From   "Nick Cox" <>
To   <>
Subject   RE: st: Re: grading
Date   Tue, 10 Jun 2003 20:23:59 +0100

It is a matter of where counting starts. 

Stata, like most (all?) statistical software, 
assigns low ranks etc. to low values. 

You want to slice off the high values, the top 15% etc., so 
you must count down from the top. 

pctile gr = score, nq(20) 
xtile pc = score, cut(gr) 
g str9 grade="Fail" 
replace grade="Honors" if pc >=18
replace grade="High Pass" if pc>12 & pc<18 



*   For searches and help try:

© Copyright 1996–2019 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index