Hi, I'm trying to replicate some analysis I did using kmatch with teffects. Below is my syntax and the error message I get. After osample identified 10K observations I deleted them but then I get an error message of no observations. I'm stuck.
. teffects nnmatch (zesci totreg pfemale pasian pblack phispanic pwhite pswd pell ppoor dist teacher_years_doe g8_zsci) (mat) , nneighbor(5) ematch(white black asian hispanic other ell swd swd lunch grade9 grade10 grade11 grade12) generate(nn) osample(nomatch)
note: swd omitted because of collinearity.
note: grade12 omitted because of collinearity.
400 observations have fewer than 5 exact matches; they are identified in the osample() variable
r(459);
end of do-file
r(459);
. tab nomatch
overlap |
violation |
indicator | Freq. Percent Cum.
------------+-----------------------------------
0 | 9,949 96.13 96.13
1 | 400 3.87 100.00
------------+-----------------------------------
Total | 10,349 100.00
. drop if nomatch ~= .
(10,349 observations deleted)
. do "C:\Users\mgw216\AppData\Local\Temp\341\STD4af0_00 0001.tmp"
. teffects nnmatch (zesci totreg pfemale pasian pblack phispanic pwhite pswd pell ppoor dist teacher_years_doe g8_zsci) (mat) , nneighbor(5) ematch(white black asian hispanic other ell swd swd lunch grade9 grade10 grade11 grade12) generate(nn) osample(nomatch)
no observations
r(2000);
. teffects nnmatch (zesci totreg pfemale pasian pblack phispanic pwhite pswd pell ppoor dist teacher_years_doe g8_zsci) (mat) , nneighbor(5) ematch(white black asian hispanic other ell swd swd lunch grade9 grade10 grade11 grade12) generate(nn) osample(nomatch)
note: swd omitted because of collinearity.
note: grade12 omitted because of collinearity.
400 observations have fewer than 5 exact matches; they are identified in the osample() variable
r(459);
end of do-file
r(459);
. tab nomatch
overlap |
violation |
indicator | Freq. Percent Cum.
------------+-----------------------------------
0 | 9,949 96.13 96.13
1 | 400 3.87 100.00
------------+-----------------------------------
Total | 10,349 100.00
. drop if nomatch ~= .
(10,349 observations deleted)
. do "C:\Users\mgw216\AppData\Local\Temp\341\STD4af0_00 0001.tmp"
. teffects nnmatch (zesci totreg pfemale pasian pblack phispanic pwhite pswd pell ppoor dist teacher_years_doe g8_zsci) (mat) , nneighbor(5) ematch(white black asian hispanic other ell swd swd lunch grade9 grade10 grade11 grade12) generate(nn) osample(nomatch)
no observations
r(2000);
Comment