-------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/seanfahle/Dropbox/BequestModel/REStud/REStudPublication/SSG_Code_REStud/Stata/Code/../Output/logs/TABA1_SAMPLE_COUNTS_2
> .txt
  log type:  text
 opened on:  30 Jun 2022, 16:56:40

. 
. **** all core interviews
. * respondents
. unique hhidpn if (riwstat==1)
Number of unique values of hhidpn is  32973
Number of records is  136977

. /*
> Number of unique values of hhidpn is  32973
> Number of records is  136977
> */
. * households
. unique hhid if (riwstat==1)
Number of unique values of hhid is  21211
Number of records is  136977

. /*
> Number of unique values of hhid is  21211
> Number of records is  136977
> */
. 
. **** all core interviews, ages 65+
. * respondents
. unique hhidpn if (riwstat==1 & (ragey_b>=65 & ragey_b<.))
Number of unique values of hhidpn is  19435
Number of records is  77266

. /*
> Number of unique values of hhidpn is  19435
> Number of records is  77266
> */
. * households
. unique hhid if (riwstat==1 & (ragey_b>=65 & ragey_b<.))
Number of unique values of hhid is  13525
Number of records is  77266

. /*
> Number of unique values of hhid is  13525
> Number of records is  77266
> */
. 
. **** all core interviews, ages 65+, parents
. * respondents
. unique hhidpn if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & (hchild>0 & hchild<.))
Number of unique values of hhidpn is  17872
Number of records is  70609

. /*
> Number of unique values of hhidpn is  17872
> Number of records is  70609
> */
. * households
. unique hhid if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & (hchild>0 & hchild<.))
Number of unique values of hhid is  12252
Number of records is  70609

. /*
> Number of unique values of hhid is  12252
> Number of records is  70609
> */
. 
. **** all core interviews, ages 65+, childless
. * respondents
. unique hhidpn if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & hchild==0)
Number of unique values of hhidpn is  1575
Number of records is  5482

. /*
> Number of unique values of hhidpn is  1575
> Number of records is  5482
> */
. * households
. unique hhid if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & hchild==0)
Number of unique values of hhid is  1342
Number of records is  5482

. /*
> Number of unique values of hhid is  1342
> Number of records is  5482
> */
. 
. **** all core interviews, ages 65+, single
. * respondents
. unique hhidpn if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & hcpl==0)
Number of unique values of hhidpn is  9438
Number of records is  32299

. /*
> Number of unique values of hhidpn is  9438
> Number of records is  32299
> */
. * households
. unique hhid if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & hcpl==0)
Number of unique values of hhid is  9191
Number of records is  32299

. /*
> Number of unique values of hhid is  9191
> Number of records is  32299
> */
. 
. **** all core interviews, ages 65+, single, NH eligible 
. **                                         (2+ ADL difficulties and/or cognitive impairment)
. * respondents
. unique hhidpn if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & hcpl==0 ///
>                  & ((radla>=2 & radla<.) | inlist(cogfunction,2,3)) )
Number of unique values of hhidpn is  6278
Number of records is  14992

. /*
> Number of unique values of hhidpn is  6278
> Number of records is  14992
> */
. unique hhid if (riwstat==1 & (ragey_b>=65 & ragey_b<.) & hcpl==0 ///
>                  & ((radla>=2 & radla<.) | inlist(cogfunction,2,3)) )
Number of unique values of hhid is  6198
Number of records is  14992

. /*
> Number of unique values of hhid is  6198
> Number of records is  14992
> */
. 
. * close log
. cap log close
