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
Dividing a column by anotherHello everyone, I use the command below in Stata 17 to calculate the total income and total tax paid…
Negative predicted values after xtnbreg on nested count dataI am analyzing how many comments a social media picture of a women gets based on how good looking th…
Graph and x-axis stataHi everyone, I wanted to know if any of you know if it is possible to detect the precise position a…
City Industry leaderHello, I am trying to create the following dummy variable: dummy variable that takes the value of 1…
how to replace the blanks in macro "global" Code: global ctrl firmAge lnEmplNum lnTtlAsset lnRDMoney patentCount1 highTech innovEntAward gl…
Subscribe to:
Post Comments (Atom)
0 Response to Use Margins for Interaction terms when model does not support factor notation
Post a Comment