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
Macro string manipulationHi I am trying to produce a one line summary of a categorical variable using Ben Jann's fre command…
Creating tables and graphs on data relating to both the survey respondent and their partnerHi Statalist. I would appreciate a hand with how to create a scatterplot presenting data on both th…
Loop to extract coefficients from regressions of increasing horizons and plotting themHi I want to construct a loop that extracts the slope coefficients on two explanatory variables fro…
Collapse says varlist requiredHi! I tried to collapse the following data but it says varlist required, why? collapse smi1 smi2 l…
Merging datasets based on recorded timeHello, I have a data file that contains activities done during certain times (for the purpose of th…
Subscribe to:
Post Comments (Atom)
0 Response to Use Margins for Interaction terms when model does not support factor notation
Post a Comment