Hi,
I am merging two data set based on Districts names in stata. Though matchit work fine in case there is no IF condition on Districts names.
However I cannot use a by or if conditionwith matchit in stata.
An example of the scenario is:
by countrynames: matchit iddistrict district using "abc", idu(id) txtu(district) sim(soundex)
or
matchit iddistrict district using "abc", idu(id) txtu(district) sim(soundex) if countrynames matches
Any thought?
Thanks
I am merging two data set based on Districts names in stata. Though matchit work fine in case there is no IF condition on Districts names.
However I cannot use a by or if conditionwith matchit in stata.
An example of the scenario is:
by countrynames: matchit iddistrict district using "abc", idu(id) txtu(district) sim(soundex)
or
matchit iddistrict district using "abc", idu(id) txtu(district) sim(soundex) if countrynames matches
Any thought?
Thanks
Comment