Hi Statalist,
I'm experiencing a peculiar issue that I've never run into before. I'm performing a 1:1 merge using two datasets with the merge variables being state fips code, county fips code, census tract number, and year.
my exact code is:
However, this yields tan error that the variable Year is not found. [r(111)]. I confirmed that Year is, indeed, in both the master (which I'm assuming this error is referring to) and the using datasets. In fact, I tabulated observations by Year in both datasets just to make sure.
I'm curious if anyone else has run into this issue and may have some ideas on troubleshooting. I'm happy to provide more details, but I think this is enough info to get started.
Many thanks,
Kelsey
I'm experiencing a peculiar issue that I've never run into before. I'm performing a 1:1 merge using two datasets with the merge variables being state fips code, county fips code, census tract number, and year.
my exact code is:
Code:
merge 1:1 state_fips county tract Year using "\\vincent\vincent_b\kelseyo\Data\Gentrification_Index\Tract_Components.dta"
I'm curious if anyone else has run into this issue and may have some ideas on troubleshooting. I'm happy to provide more details, but I think this is enough info to get started.
Many thanks,
Kelsey

Comment