From | Christopher F Baum <[email protected]> |
To | [email protected] |
Subject | st: Re: grading |
Date | Wed, 11 Jun 2003 07:00:28 -0400 |
On Wednesday, June 11, 2003, at 02:33 AM, Chris wrote:
Thanks. I must still not understand how -pctile- and -xtile- work. This codeI had the percentiles backward, given that the lowest percentiles will be the lowest grades.
gave me sort of a U-shaped distribution of grades: highest-scoring students
got fail, and so did the lowest-scoring. In the middle were honors, high pass,
and pass.
The 'gr' variable contains 20 observations, corresponding to the 5th, 10th, 15th,... 95thpctile gr = score, nq(20) xtile pc = score, cut(gr) g str9 grade="Fail" replace grade="Honors" if pc>17 replace grade="High Pass" if pc>12 & pc<18 replace grade="Pass" if grade=="Fail" & score>299
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |