Dear Statalist,
I am sending this question again, because I didn't get an answer last time I wrote: My team and I are running a propensity score matching analysis on agricultural data in order to assess the impact of credit in several farmer outcomes. For this, we are using the command teffects nnmatch, that allows to perform the matching exactly on the observable covariates, which is useful for categorical variables for example.
Anyways, we are now getting an error after running the command, which is similar to the one of this thread:http://www.statalist.org/forums/foru...match-question
We first run a line of code that looks like the following:
which gives the following error message:
We then include the option osample:
.
After Stata identifies the observations for which an exact match cant be found (they have a 1 in newvar). We do the following:
Unfortunately, we end up with an error message similar to when we first ran the command, that is, the Stata claims it didnt find exact matches for a certain observation, different than the one at the beginning. Does anybody know a solution for this problem?
Best regards,
Juan Hernández
I am sending this question again, because I didn't get an answer last time I wrote: My team and I are running a propensity score matching analysis on agricultural data in order to assess the impact of credit in several farmer outcomes. For this, we are using the command teffects nnmatch, that allows to perform the matching exactly on the observable covariates, which is useful for categorical variables for example.
Anyways, we are now getting an error after running the command, which is similar to the one of this thread:http://www.statalist.org/forums/foru...match-question
We first run a line of code that looks like the following:
Code:
teffects nnmatch (dep_variable x_covariate) (treatment)
no exact matches for observation 23472; use option osample() to identify all observations with deficient matches
Code:
teffects nnmatch (dep_variable x_covariate) (treatment) , osample(newvar)
After Stata identifies the observations for which an exact match cant be found (they have a 1 in newvar). We do the following:
Code:
teffects nnmatch (dep_variable x_covariate) (treatment) if newvar == 0
Best regards,
Juan Hernández
Comment