I have a question about the coefplot command following gsem models. I am trying to run complier average treatment effectmodels with the gsem command.
My problem is that when I try using coefplot, it only seems to plot the control variables (listed on the 4th line of the code below), whereas I need the coefplot of the treatment. I tried using the keep and drop options, but since the treatment does not even appear in the list of variables of the coefplot, it did not make a difference. Does anyone know how I might be able to fix this?
Here is the code I used:
gsem ///
(1: petition <- i.treatment@0 corruption_pol corruption_brazilians trust_congress corruption_bureaucracy impartiality credibility competence trust_prosecutor) ///
(2: petition <- i.treatment) ///
(C <- i.male income education age i.race) ///
(1: m_check <- _cons@-15, logit) ///
(2: m_check <- _cons@15, logit), ///
lclass(C 2)
estimates store petition
coefplot petition
Thank you!
My problem is that when I try using coefplot, it only seems to plot the control variables (listed on the 4th line of the code below), whereas I need the coefplot of the treatment. I tried using the keep and drop options, but since the treatment does not even appear in the list of variables of the coefplot, it did not make a difference. Does anyone know how I might be able to fix this?
Here is the code I used:
gsem ///
(1: petition <- i.treatment@0 corruption_pol corruption_brazilians trust_congress corruption_bureaucracy impartiality credibility competence trust_prosecutor) ///
(2: petition <- i.treatment) ///
(C <- i.male income education age i.race) ///
(1: m_check <- _cons@-15, logit) ///
(2: m_check <- _cons@15, logit), ///
lclass(C 2)
estimates store petition
coefplot petition
Thank you!
Comment