Hello Statalists,
I am using CMP to perform an endogenous switching regression based on a treatment event.
The code is:
cmp setup
cmp (y = x1 x2 x3) ///
(y = x1 x2) ///
(treatment = x1 x2 x4 x5) , nonrtolerance ///
indicators(treated control $cmp_probit) robust
where "treated" in the final row is a dummy with a value of 1 for the treated group and 0 for the control group; "control" is its opposite.
So for the treated group, the model is y=x1 x2 x3; for the control group, y=x1 x2.
I am interested in comparing the coefficients of X1 in both the treated and the control groups. I understand that SUEST can do this, but with CMP, it seems unlikely to use the "est store" command as "https://www.statalist.org/forums/forum/general-stata-discussion/general/1415933-suest-for-comparing-regression-coefficients-for-two-different-samples" suggests.
I only know that the variance-covariance matrix is in e(V), but I don't know how to tell SUEST that.
Please help. Thanks in advance.
Leonxf
I am using CMP to perform an endogenous switching regression based on a treatment event.
The code is:
cmp setup
cmp (y = x1 x2 x3) ///
(y = x1 x2) ///
(treatment = x1 x2 x4 x5) , nonrtolerance ///
indicators(treated control $cmp_probit) robust
where "treated" in the final row is a dummy with a value of 1 for the treated group and 0 for the control group; "control" is its opposite.
So for the treated group, the model is y=x1 x2 x3; for the control group, y=x1 x2.
I am interested in comparing the coefficients of X1 in both the treated and the control groups. I understand that SUEST can do this, but with CMP, it seems unlikely to use the "est store" command as "https://www.statalist.org/forums/forum/general-stata-discussion/general/1415933-suest-for-comparing-regression-coefficients-for-two-different-samples" suggests.
I only know that the variance-covariance matrix is in e(V), but I don't know how to tell SUEST that.
Please help. Thanks in advance.
Leonxf
Comment