I have household survey on data including variables
'HouseholdID' containing an ID number unique to each household, with about 1-10 individuals per household.
Some of these individuals are also migrants indicated by a dummy 'IndividualIsMigrant =1 if migrant =0 if not'
What i want to do is to create a new dummy variable 'HHdContainsMigrant' if any of the household members are migrants.
I hope this is clear
Thanks for the Help
Related Posts with Generating a dummy variable if a household has a migrant or not.
mvprobit or cmp?Dear STATA Users, I am trying to estimate a multivariate probit for a given outcome that would mode…
The Number of Iterations for Convergence in mlI am writing a programme for the ml command. I found that even if a slight difference in my codes ca…
Exporting data in excel sequentially, in different rowsHi All, I currently have data which resembles the following: Code: * Example generated by -dataex…
Ado embedded python code not workingI have an ado called groupfunction which made use of python for calculating Gini coefficients since …
Sample size for one proportion (prevalence in cross-sectional design)Hello everybody, and thank you in advance. I'm trying to calculate a sample size for a cross-sectio…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a dummy variable if a household has a migrant or not.
Post a Comment