Hello.
I am currently working with the BCS70 dataset which is a longitudinal panel study following 17000 individuals over more than 50 years. I plan to use data from 3 waves of the study. Since its a survey that has been interviewing same individuals since, the questions at each sweep differ and thus each data file has different variables. For example, the questions at age 10 sweep don't include questions related to employment and those are included at age 30 sweep. Thus, the variables differ in each sweep.
As for the observations, the number of individuals interviewed in each sweep also vary. Some of the individuals in age 10 sweep are not interviewed at age 30 and vice versa. So, the number of observations and the variables both differ.
I need to combine these datasets but I am not sure how to do that using Stata. I used 1:1 merge command to combine two datasets using the unique identification code given to each individual and although that combined the datasets with different variables, I am not sure how to use the data to conduct panel data analysis?
Related Posts with Combining panel data with different variables and different number of observations from multiple data files
marginal effects multinomial logit modelAfter the estimation, I used margins, dydx(*) command to compute the marginal effect,, I then use ou…
Generate random value stataDear collegues, I'm working on a consumer survey. In this survey, we asked to consumers to rank the…
How to use command cem to get the exact results from command kmatch?I want to compare whether the results of user-command Code: cem and Code: kmatch are the same. Ho…
Extracting First Character in a String that Satisfies a ConditionHello, My data contains in each row: (1) a string variable of different lengths ("String") (2) a n…
Alternative-specific constant equal to nest in nested logitDear all, I am using a nested logit model to analyze a discrete choice experiment. I have one nest …
Subscribe to:
Post Comments (Atom)
0 Response to Combining panel data with different variables and different number of observations from multiple data files
Post a Comment