-------------
      name:  <unnamed>
       log:  C:\Users\ry\Desktop\chwk\outbox\scales\reliabilities\do\CountICDXcorrection.smcl
  log type:  smcl
 opened on:   3 Feb 2011, 15:15:58

. // this do file calculates for each respondent the number of diagnosed
. // illnesses (that is, counts the numbers if icd9 or icd10 diagnoses
. * use chdata20, clear
. * R. Yaffee
. display c(filename)


. display c(pwd)
C:\Users\ry\Desktop\chwk\outbox\scales\reliabilities\do

. display c(current_date)
 3 Feb 2011

. display c(current_time)
15:15:58

. *  and count of number of illnesses
. *  Correct the miscode
. loc vv "icdx1n-icdx12n"

. * recode `vv'(0=.)
. egen cticdx=rownonmiss(icdx1n-icdx12n)
variable icdx1n not found
r(111);

end of do-file

r(111);

. exit, clear