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

st: Re: grading


From   Christopher Baum <[email protected]>
To   [email protected]
Subject   st: Re: grading
Date   Tue, 10 Jun 2003 08:24:08 -0400

On Tuesday, June 10, 2003, at 02:33 AM, Chris wrote:


Top 15% get honors; next 25% get high pass, everyone else above 299 gets pass.
Everyone else fails. [Now is not the time to debate "relative" grading--I
don't like it either, but the powers-that-be at my university tell me to do it
that way.]

I could just -list- the sorted dataset and eyeball it to assign final letter
grades, but I'm lazy. Can Stata do this for me? I've been looking at -egen-,
and -pctile-. They look promising, but I can't figure out how to use them for
this purpose. Or is there another, better, command?

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


Kit Baum, Boston College Economics      [email protected]
http://fmwww.bc.edu/ec/baum.php

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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