Hi Statalist
My question is about how we can get Margins commands to work correctly when the estimation model, which includes interaction terms, does not support factor notation.
Specifically, I understand there are good reasons as to why models such as -xthtaylor- do not support factor notations & I have simply created the interaction terms manually via inter = i.x1 * i.x2 if !missing(x1) & !missing(x2).
However, this poses a difficulty when it comes to using -margins- & -marginsplot-.
I note a related discussion from https://www.statalist.org/forums/for...action-effects. Unfortunately I am not yet skilled enough in Stata programming to confidently implement Daniel's solution in that post. I am therefore wondering if anyone might be aware of user-written commands or the like to address this issue?
Thanks,
Junran
Related Posts with Use Margins for Interaction terms when model does not support factor notation
Invalid Label ErrorThe second half of my code is producing an error stating "varlist not allowed". I am working on a d…
DFITS after tobitDear all, I would like to exclude some influential observations in a Tobit regression. When using .…
descriptive statistics with svyHi Folks, I'm doing a cross-sectional analysis with one wave of a german Panel study. I weighted my…
Testing to compare coefficient from multiple time-series regressionsHi Statlists, I have three time series models that run on the same independent variables, the only …
Forming groups by two string variables that are interchangeableDear Statalists, for my research on repeated alliances I am using a dataset in which each observatio…
Subscribe to:
Post Comments (Atom)
0 Response to Use Margins for Interaction terms when model does not support factor notation
Post a Comment