I am posting this mostly so others searching for this problem might find it.
After estimating an extended probit regression (eprobit) with an endogenous treatment variable, then using
to get an estimate of the treatment effect, I got the following error:
outlevel() incorrectly specified;
must specify a value of F3D39,
or #1, #2, ...
r(111);
(F3D39 is the dependent variable.) This is odd, since help erm estat says outlevel() is relevant only for eoprobit (ordered probit), not for eprobit.
Codebook for F3D39 shows that it is indeed a binary variable:
On a hunch, I created a new dependent variable based on the old:
The results of eprobit are (of course) the same, but estat teffects now works:
After estimating an extended probit regression (eprobit) with an endogenous treatment variable, then using
Code:
estat teffects, ate
outlevel() incorrectly specified;
must specify a value of F3D39,
or #1, #2, ...
r(111);
(F3D39 is the dependent variable.) This is odd, since help erm estat says outlevel() is relevant only for eoprobit (ordered probit), not for eprobit.
Codebook for F3D39 shows that it is indeed a binary variable:
Code:
. codebook F3D39 F3_FREQ_VOLUNTEER ------------------------------------------------------------------------------------------------------------------------------------------------ F3D39 Whether voted in any local/state/national election during 2009, 2010, or 2011 ------------------------------------------------------------------------------------------------------------------------------------------------ type: numeric (byte) label: F3D39 range: [0,1] units: 1 unique values: 2 missing .: 0/10,532 tabulation: Freq. Numeric Label 6,315 0 No 4,217 1 Yes
Code:
. gen F3_VOTED_OTHER = F3D39 . codebook F3_VOTED_OTHER ------------------------------------------------------------------------------------------------------------------------------------------------ F3_VOTED_OTHER (unlabeled) ------------------------------------------------------------------------------------------------------------------------------------------------ type: numeric (float) range: [0,1] units: 1 unique values: 2 missing .: 0/10,532 tabulation: Freq. Value 6,315 0 4,217 1
Code:
. estat teffects, ate Predictive margins Number of obs = 9,928 ------------------------------------------------------------------------------ | Linearized | Margin Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- ATE | F3_BACHELORS | (1 vs 0) | .1073137 .0269087 3.99 0.000 .0544094 .1602181 ------------------------------------------------------------------------------
Comment