I've read the manual and Richard's guide about margins command, but could not understand some concepts.
I'm fitting a Linear Mixed Model to predict human's movement acceleration measured over a month. I want to identify differences on predictors by different periods of the day (morning/afternoon) according to sex and age.
The equation looks like:
Code:
mixed acceleration day_period##sex##c.predictor day_period##c.age##c.predictor || ID: R.day_period || date: R.day_period, residuals(ar 1, t(day_period))
Code:
contrast day_period#c.predictor@sex, effects asobserved
Code:
margins day_period#i.sex, dydx(c.predictor) asobserved margins day_period@.sex, dydx(c.predictor) contrast(effects) asobserved
Any help?
0 Response to Issues on replicating contrasts with margins command
Post a Comment