Hi there,
I have panel data with each survey providing multiple STATA datasets from that sweep.
Each household surveyed has a unique ID number, yet some of these are duplicated if two people from a household were surveyed. The ID number remains consistent for each sweep of the survey.
From data from an earlier sweep, I have data on respondent var1 (categorical). Not all respondents provided answers.
In my most recent survey data, some those who did not answer before have given an answer for their var1 in the most recent survey, whilst some again did not answer, and those who have answered before were coded as 'not applicable.'
Therefore, I wish to bring the var1 data from the previous survey into my existing most recent dataset whereby most responses are 'not applicable' due to the prior dataset containing the information. I need the var1 to correspond to the correct unique ID number, thereby replacing the 'not applicables' with the correct var1 data provided in the previous sweep, and retaining the new information provided in the most recent sweep.
Any suggestion/direction would be most appreciated! Thank you!
Related Posts with Merging panel data
Days between two dates, separated by year.Hello statalist! I have a dataset in long format which measure enrollment under a period of time. E…
Herfindahl-IndexHello, i need the industry concentration (Herfindahl Index), calculated as the sum of squared marke…
WDI dataDear Statalist, I would like to download WDI data that could also include the income_group and regi…
Reference to other rowsDear all, I have a table (that results from dependency parsing) with some rows referencing to other …
Can I ignore bins with high p-valuesHello! I am analyzing the effect of wind on the fertility rate using a quadratic term of wind: Arra…
Subscribe to:
Post Comments (Atom)
0 Response to Merging panel data
Post a Comment