Hi there,
I hope this question is not too basic - I'm working with some do files created by someone else for a number of older datasets and am supposed to be making them work for the newer versions. I'm stumbling upon this:
First of all, I don't think I fully understand what the $ does within the keepusing() command. From googling it seems this usually has to do with a global macro, but I'm not sure that makes sense in this context.
When I run this, I get an "ambiguous abbreviation" error. Consequently, the same thing happens with the next command:
"variable3 ambiguous abbreviation"
Can someone please help with this?
Thanks in advance,
Franzi
I hope this question is not too basic - I'm working with some do files created by someone else for a number of older datasets and am supposed to be making them work for the newer versions. I'm stumbling upon this:
Code:
merge 1:1 variable1 variable2 using "${path}pl.dta", keepusing($pl) keep(match master) nogen
When I run this, I get an "ambiguous abbreviation" error. Consequently, the same thing happens with the next command:
Code:
use variable1 variable2 $pl using "${path}pl.dta", clear
Can someone please help with this?
Thanks in advance,
Franzi
Comment