Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: a reminder of how to get confused


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: a reminder of how to get confused
Date   Wed, 5 May 2010 19:21:41 +0100

Some of us learned from your (shortest?) paper how to exclude missings
easily: 

STB-9   ip2 . . . . . . . . . . . . . . . . . . . . . . .  A keyboard
shortcut
        . . . . . . . . . . . . . . . . . . . . . . . . . .  P. A.
Lachenbruch
        9/92    p.9; STB Reprints Vol 2, p.46                    (no
commands)
        keyboard shortcut to indicate nonmissing values

Nick 
n.j.cox@durham.ac.uk 

Lachenbruch, Peter

I should have known better.  I computed the median with sum and with
centile on some data (they gave the same answer! Whew!).  Then I tried
count if x>the median.  With 410 observations I should have had 205
values but it came out as 227.  
After puzzling for a couple of minutes I realized that I need to account
for the missing in the count - problem solved.  

I know this has been mentioned before on this list, but it's something
that we should keep in mind anyway.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index