Ich habe für meine Masterarbeit eine moderierte Regression mit R Studio durchgeführt:
Code: Alles auswählen
mod.reg <- lm(postppvt ~ preppvt * DH,
data = Mod_PPVT)
Ich würde die Interaktion jetzt gerne graphisch abbilden und nutze dafür aus dem "interactions"-Paket:
Code: Alles auswählen
interact_plot(model=mod.reg.ppvt, pred = postppvt, modx = DH)
Code: Alles auswählen
geom_path()`: Each group consists of only one observation.
ℹ Do you need to adjust the group aesthetic?
Warning message:
postppvt and DH are not included in an interaction with one another in the
model.
Liebe Grüße,
Nina