Newbie here.
I am trying to merge two files - one is a headteacher survey from 200 schools. The second is a parent survey carried out with 6 parents from 60 schools (so 360 observations in total) randomly selected from the 200. Both have the variable SchoolName as the identifier.
I have tried the following:
Using the parent file as the master one and the command "merge 1:m SchoolName using" the parent file. I've also tried the command merge m:1. It keeps returning the message "that variable SchoolName does not uniquely identify observations".
I have searched for duplicates and found none.
I've checked SchoolName is stored as a number in both files.
Thank you for your help.
Related Posts with Merging two data files
multilevel logistic regression: question about random slopeHello, I have models of multilevel logistic regression with random intercept and random slope. In th…
mixed effect modelsHi, I'm trying to fit data from 10 different subjects to a nonlinear mixed effect model. The model …
r(3261) error messageHi, I'm using the stns command on STATA and I keep getting this error code "3261 non/class structu…
How to attribute a numeric value to a string variable through a loopHi all, In my Dataset I have 12241 unique values, every individual is represented by the variable c…
How to show the ENDOG results using OUTREG2 from INSTRUMENTAL REGRESSION?Hello Stata users, Does anybody know the command in OUTREG2 to show the ENDOG command results (i.e.…
Subscribe to:
Post Comments (Atom)
0 Response to Merging two data files
Post a Comment