Hi! I run a linear mixed model with splines for age and. The model contains a 3-way interaction with c.agespline*##c.cov1##c.cov2. I want to make a plot with age vs cov1 for different values of cov2. Questions: is it possible to use margins when there is an interaction containing splines? I thought about using the marginscontplot (user written, p royston). However, this command does not seem to handle 3-way interactions. Or? And, finally, is margins, dydx() equivalent to marginscontplot, margopts (dydx())?
↧