Multi-Model `coefplot` (LaTeX)
Using tenuredata.dta, compare the fertilizer and labor coefficients across multiple specifications.
- Run and store three regressions, all with
vce(cluster panelid):- m1:
yieldonq_f_ha lt_f_ha i.irrig i.tenure - m2:
yieldonq_f_ha lt_f_ha i.irrig i.tenure i.site - m3:
yieldonq_f_ha lt_f_ha i.irrig i.tenure i.site i.year
- m1:
-
Create a multi-model coefplot showing only
q_f_haandlt_f_ha:coefplot (m1, label("Baseline") ) /// (m2, label("+ Tenure/Irrig") ) /// (m3, label("+ Village/Year FE") ), /// keep(q_f_ha lt_f_ha) xline(0) /// xtitle("Coefficient size") - Export the graph:
graph export "$answ/10-coefplot-multi.png", replace - In your
lastname.tex, include the graph using\includegraphics[width=0.8\textwidth]{10-coefplot-multi.png}