Re: School attendance for 6-17 years [message #18157 is a reply to message #14141] |
Tue, 01 October 2019 07:28 |
biswaj41_ssf
Messages: 7 Registered: May 2019
|
Member |
|
|
Modification according to NFHS-4 to replicate table no. 2.19 (India national report)
There are two phases in NFHS-4 and we need to define CMC separately for two phases. Just change to the following codes in the help file provided by Tom Pullum. No need to change other codes.
* Generating different CMC for two phases
gen CMC=.
replace CMC = 4+12*(2014-1900) if shphase == 1
replace CMC = 4+12*(2015-1900) if shphase == 2
tab shphase CMC
gen must_use_hv105=0
replace must_use_hv105=1 if in_BR==. & in_IR==. & in_MR==.
gen sh18c_test=CMC-cmc_of_birth
Enjoy!
|
|
|