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

Re: st: counting types of diagnoses, and making a table of them,


From   Joseph Coveney <jcoveney@bigplanet.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   Re: st: counting types of diagnoses, and making a table of them,
Date   Wed, 21 Sep 2005 12:57:36 +0900

I accidentally omitted a couple of lines before -drop _merge- in the example
do-file:

assert _merge > 1
keep if _merge == 3

The first omitted line is the reason for returning to the database in the
first place.  (The original codes aren't needed in order to reshape the
labels wide.)  It's there just as a check that the database is set up (e.g.,
declarative referential integrity) and the transfers from the database don't
differ greatly from what is expected or intended.  It probably would be
impolitic to frequently pull the entirety of very large tables across a
heavily trafficked network in order to use this tactic.

The second line assumes that only those ICPC categories that at least one
medical student actually reported using during the period are of interest.

Joseph Coveney

*
*   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