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.
how to add up length of stays in hospital for certain hospitalizationshi all, I ve been trying to perform this task for a week now with no luck. I have a data set (each …
File not found error when looping over files in a directoryDear Statalists, I am trying to import some excel files from the same directory and merge them into…
generating a new variable in survey dataHi, I need to generate a new variable from the dataset that contains the number of children in the f…
Dummy variable that changes per group of observationsHello everyone, I have two dummy variables ger1 and ger2. Essentially what I need to do is to crea…
How to generate wealth share of the top 10% in wealth distribution using weighted data?Dear Listers, I have data which provides me with information on wealth of each household. ID is the…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a dummy variable if a household has a migrant or not.
Post a Comment