Re: Migration data: number of visitors [message #25750 is a reply to message #25731] |
Mon, 05 December 2022 08:41 |
Bridgette-DHS
Messages: 3199 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS staff member, Tom Pullum:
I see that there are 20 men who are classified as "visitor" on mv135 (mv135=2) and "always" on mv104 (mv104=95 rather than 96). This does appear to be an inconsistency. I would give priority to mv135, which is based on hv102 in the PR file. (I assume that that mv135 agrees with hv102, although I have not checked.) You should not over-write a standard variable, but I would use one or the other of the following (two lines in Stata) to make the corredtion:
gen mv104_original=mv104
replace mv104=95 if mv135==2
OR
gen mv104r=mv104
replace mv104r=95 if mv135==2
|
|
|