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

RE: st: Re: grading


From   "Christopher W. Ryan" <cryan@binghamton.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Re: grading
Date   Tue, 10 Jun 2003 15:57:43 -0400

I like it.  

It's a tiny exercise, easier to do by hand, but it is also helping me to 
understand -pctile- and -xtile- better.
Thanks.

--Chris
-- 
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
and Wilson Family Practice Residency
40 Arch Street, Johnson City, NY  13790
cryanatbinghamtondotedu
Public key generated with PGP 602i available at 
http://home.stny.rr.com/ryancw/PGP602ipublickey.html
or via http://wwwkeys.us.pgp.net:11371

"If you want to build a ship, don't drum up the men to gather wood, divide the 
work and give orders. Instead, teach them to yearn for the vast and endless 
sea."  [Antoine de St. Exupery]


On Tue, 10 Jun 2003 20:23:59 +0100, Nick Cox wrote:
>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:
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index