Hello,
I am using -mixed- and was hoping for advice on (1) how to add in random slopes to the model; and (2) if my postestimation method is appropriate.
BACKGROUND: In a cross-over design, participants completed two exercise conditions, each with 4 sample timepoints (baseline, post, post30min, post60min). I would like to use LMEM to determine changes in the dependent variable (Cell viability) from baseline to the post-exercise timepoints.
(1) My current code is below with Participants classified as a random intercept. But I am unsure how to also add random slopes?
(2) I am also new to LMEMs (if this wasn’t already obvious😊) and only previously used Two-way RM ANOVA where following the test I would run a post hoc analysis. Following LMEM, I have tried the postestimation commands below but unsure which, if any, is appropriate? Would it also be possible to calculate effect sizes e.g. Cohen’s d or η² following LMEM?
Any suggestions greatly appreciated - thank you!
I am using -mixed- and was hoping for advice on (1) how to add in random slopes to the model; and (2) if my postestimation method is appropriate.
BACKGROUND: In a cross-over design, participants completed two exercise conditions, each with 4 sample timepoints (baseline, post, post30min, post60min). I would like to use LMEM to determine changes in the dependent variable (Cell viability) from baseline to the post-exercise timepoints.
(1) My current code is below with Participants classified as a random intercept. But I am unsure how to also add random slopes?
Code:
mixed Viability i.Condition##Time || Participant:
(2) I am also new to LMEMs (if this wasn’t already obvious😊) and only previously used Two-way RM ANOVA where following the test I would run a post hoc analysis. Following LMEM, I have tried the postestimation commands below but unsure which, if any, is appropriate? Would it also be possible to calculate effect sizes e.g. Cohen’s d or η² following LMEM?
Code:
contrast r.Time@Condition, pveffects
Code:
pwcompare Condition##Time, mcompare(bonferroni) effects
Comment