Hi all,
I am using Stata.13.
I am merging a data set that has 186 observations and 56 variables with a Master data set that has 3667 observations. The 56, and 186 variables from the using file are in the master data set. I am matching records using the following
This is the Stata output after I run my code.
This tells me that the matching according to Stata is happening. But when I look at the variables in the new matched file for the specific cases all those variables have cells reporting missing
below is an example of data from the using file ped_id_pa1, pa_date1, pa_1, and grade_pa1 are supposed to merge in the merged file.
but this is how they turn out for those same cases
I have used similarly merge in the past and nothing like this has happened before, any suggestions?
Patrick
I am using Stata.13.
I am merging a data set that has 186 observations and 56 variables with a Master data set that has 3667 observations. The 56, and 186 variables from the using file are in the master data set. I am matching records using the following
Code:
merge 1:1 student_id chd_sex chd_b_date using "/Volumes/CPHHS/4_StudyData/2 School/4 Pedometer Data/Fall 2013/6_Bonanza/BZE_PAA20150306.dta"
HTML Code:
. merge 1:1 student_id chd_sex chd_b_date using "/Volumes/CPHHS/4_StudyData/2 School/4 Pedometer Data/Fal > l 2013/6_Bonanza/BZE_PAA20150306.dta" Result # of obs. ----------------------------------------- not matched 3,481 from master 3,481 (_merge==1) from using 0 (_merge==2) matched 186 (_merge==3) -----------------------------------------
.
HTML Code:
ped_id_pa1 student_id pa_date1 pa_1 grade_pa1 p465 BZE_0001 10/7/2013 1 1 p144 BZE_0002 10/7/2013 1 1 p108 BZE_0003 10/7/2013 1 1 p343 BZE_0004 10/7/2013 1 1 p290 BZE_0009 10/7/2013 1 1 p430 BZE_0010 10/7/2013 1 1 p473 BZE_0012 10/7/2013 1 1 p034 BZE_0014 10/7/2013 4 1 p147 BZE_0015 10/7/2013 1 1
HTML Code:
ped_id_pa1 student_id pa_date1 pa_1 grade_pa1 . BZE_0001 . . . . BZE_0002 . . . . BZE_0003 . . . . BZE_0004 . . . . BZE_0009 . . . . BZE_0010 . . . . BZE_0012 . . . . BZE_0014 . . . . BZE_0015 . . .
Patrick
Comment