Hi,
I’m estimating a hybrid within-between model following Schunck (2013) and I would like to graph average marginal effects for both the within-person and between-person interaction.
Because I’ve had to construct the interaction manually (following Schunck’s approach, pg. 71-72) instead of using factor variable notation, I can’t use margins/marginsplots and I can’t figure out how else to do it.
The interaction is between binary employment and finances (three categories)
I have two specifications. The first includes the main effects of both employment and finances:
The second excludes the main effect of employment:
Where emp2Xfin1 = emp2*fin1, emp2Xfin2 = emp2*fin2 and emp2Xfin3 = emp2*fin3, each decomposed into within (d) and between (m) components.
Schunck, R. (2013). Within and between estimates in random-effects models: Advantages and drawbacks of correlated random effects and hybrid models. The Stata Journal, 13(1), 65-76.
I’m estimating a hybrid within-between model following Schunck (2013) and I would like to graph average marginal effects for both the within-person and between-person interaction.
Because I’ve had to construct the interaction manually (following Schunck’s approach, pg. 71-72) instead of using factor variable notation, I can’t use margins/marginsplots and I can’t figure out how else to do it.
The interaction is between binary employment and finances (three categories)
I have two specifications. The first includes the main effects of both employment and finances:
Code:
xtreg sf12mcs_dv_z memp2 demp2 mfin2 dfin2 mfin3 dfin3 memp2Xfin2 demp2Xfin2 memp2Xfin3 demp2Xfin3 mage_2 dage_2 mage_3 dage_3 mage_4 dage_4 mhealth_2 dhealth_2 i.sex i.parent_ed i.parent_occ_GT i.ethnic, i(pidp) re vce(cluster pidp)
Code:
xtreg sf12mcs_dv_z mfin2 dfin2 mfin3 dfin3 memp2Xfin1 demp2Xfin1 memp2Xfin2 demp2Xfin2 memp2Xfin3 demp2Xfin3 mage_2 dage_2 mage_3 dage_3 mage_4 dage_4 mhealth_2 dhealth_2 i.sex i.parent_ed i.parent_occ_GT i.ethnic, i(pidp) re vce(cluster pidp)
Where emp2Xfin1 = emp2*fin1, emp2Xfin2 = emp2*fin2 and emp2Xfin3 = emp2*fin3, each decomposed into within (d) and between (m) components.
Schunck, R. (2013). Within and between estimates in random-effects models: Advantages and drawbacks of correlated random effects and hybrid models. The Stata Journal, 13(1), 65-76.

Comment