Hi everyone,

I am running a linear mixed model in R, using the lme-function. The following variables are used:

Y ... Outcome (continuous)

IV1 ... Time (categorical: 0, 1, 2, 3)

IV2 ... Group (categorical: 0, 1)

CV ... Covariate (categorical: 0, 1)

I want to plot the three-way interaction of IV1*IV2*CV, so that I have the time-effect plotted separately for each group and each level of the covariate.

Is there any package you can recommend?

I tried the graph_model-function of the reghelper-Package but it treats all my IVs as continuous and use -1SD and +1SD as the reference point for each...

Basically I want time on the x-axis, Y on the y-axis, and then two lines for the control group and two lines for the experimental group. Either in one diagram or in two.

Thank you in advance for your help!

Best wishes,

Daniel

More Daniel Spitzenstätter's questions See All
Similar questions and discussions