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

. 
. tab xnriw               // -> unbalanced

      xnriw |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |      3,227       17.95       17.95
          1 |      3,227       17.95       35.91
          2 |      3,151       17.53       53.44
          3 |      3,010       16.75       70.18
          4 |      2,316       12.89       83.07
          5 |      1,668        9.28       92.35
          6 |      1,011        5.62       97.97
          7 |        364        2.03      100.00
------------+-----------------------------------
      Total |     17,974      100.00

. /*
>       xnriw |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>           0 |      3,227       17.95       17.95
>           1 |      3,227       17.95       35.91
>           2 |      3,151       17.53       53.44
>           3 |      3,010       16.75       70.18
>           4 |      2,316       12.89       83.07
>           5 |      1,668        9.28       92.35
>           6 |      1,011        5.62       97.97
>           7 |        364        2.03      100.00
> ------------+-----------------------------------
>       Total |     17,974      100.00
> */
. 
. tab xnriw if totnriw>=4 // -> balanced? (no: actually, not everyone has wealth data at end point)

      xnriw |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |      2,316       15.84       15.84
          1 |      2,316       15.84       31.68
          2 |      2,316       15.84       47.51
          3 |      2,316       15.84       63.35
          4 |      2,316       15.84       79.19
          5 |      1,668       11.41       90.60
          6 |      1,011        6.91       97.51
          7 |        364        2.49      100.00
------------+-----------------------------------
      Total |     14,623      100.00

. 
. /*
>       xnriw |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>           0 |      2,316       15.84       15.84
>           1 |      2,316       15.84       31.68
>           2 |      2,316       15.84       47.51
>           3 |      2,316       15.84       63.35
>           4 |      2,316       15.84       79.19
>           5 |      1,668       11.41       90.60
>           6 |      1,011        6.91       97.51
>           7 |        364        2.49      100.00
> ------------+-----------------------------------
>       Total |     14,623      100.00
> */
. 
. tab xnriw if fullWlthHist4==1 & (riwstat==1 | xIW==1) // -> balanced

      xnriw |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |      2,290       15.82       15.82
          1 |      2,290       15.82       31.64
          2 |      2,290       15.82       47.46
          3 |      2,290       15.82       63.29
          4 |      2,290       15.82       79.11
          5 |      1,654       11.43       90.53
          6 |      1,007        6.96       97.49
          7 |        363        2.51      100.00
------------+-----------------------------------
      Total |     14,474      100.00

. 
. /*
>       xnriw |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>           0 |      2,290       15.82       15.82
>           1 |      2,290       15.82       31.64
>           2 |      2,290       15.82       47.46
>           3 |      2,290       15.82       63.29
>           4 |      2,290       15.82       79.11
>           5 |      1,654       11.43       90.53
>           6 |      1,007        6.96       97.49
>           7 |        363        2.51      100.00
> ------------+-----------------------------------
>       Total |     14,474      100.00
> */
. 
. * count of all decedents with 4+ core interviews:
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1)
Number of unique values of hhidpn is  2290
Number of records is  14474

. /*
> Number of unique values of hhidpn is  2290
> Number of records is  14474
> */
. // -> 2,290 decedents
. // -> 14,474 interviews (core + exit)
. 
. * parents
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1) & (nochild==0)
Number of unique values of hhidpn is  2060
Number of records is  13019

. /*
> Number of unique values of hhidpn is  2060
> Number of records is  13019
> */
. 
. * childless
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1) & (nochild==1)
Number of unique values of hhidpn is  230
Number of records is  1455

. /*
> Number of unique values of hhidpn is  230
> Number of records is  1455
> */
. 
. * T-1 owners
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1) & (own_1x==1)
Number of unique values of hhidpn is  1000
Number of records is  6310

. /*
> Number of unique values of hhidpn is  1000
> Number of records is  6310
> */
. 
. * T-1 renters
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1) & (own_1x==0)
Number of unique values of hhidpn is  1266
Number of records is  8013

. /*
> Number of unique values of hhidpn is  1266
> Number of records is  8013
> */
. 
. * T-1 NHRs
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1) & (nhr_1x==1)
Number of unique values of hhidpn is  555
Number of records is  3518

. /*
> Number of unique values of hhidpn is  555
> Number of records is  3518
> */
. 
. * T-1 CRs
. unique hhidpn if (fullWlthHist4==1) & (riwstat==1 | xIW==1) & (nhr_1x==0)
Number of unique values of hhidpn is  1735
Number of records is  10956

. /*
> Number of unique values of hhidpn is  1735
> Number of records is  10956
> */
. 
. * close log
. cap log close
