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
Fixed effects probit and logit models with marginal coefficients evaluated at means I have some survey data and a dummy outcome variable. The data includes the region in which each in…
Overlay two lowess-functions?Hello, everyone, is there a method to display (overlay) two lowess-functions at the same time in one…
Please can someone helpHi, having to use STATA as an Economics Undergrad for Economics to write my dissertation and keep c…
Panel table, initial value as regressorDear all, I would like to examine the effect of initial leverage ratio on leverage ratio. I've got a…
Using weights with xtheckman | xtheckman's fixed effects equivalentHi, I am using six waves of the PSID to estimate several determinants (particularly wealth) of the …
Subscribe to:
Post Comments (Atom)
0 Response to Merging panel data
Post a Comment