[R] How to illustrate an interaction with plotLMER.fnc

Haverinen-Shaughnessy Ulla ulla.haverinen-shaughnessy at thl.fi
Fri May 16 19:40:18 CEST 2014


It works, thanks a million!

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Christoph Scherber
Sent: 16. toukokuuta 2014 19:50
To: r-help at r-project.org
Subject: Re: [R] How to illustrate an interaction with plotLMER.fnc

Dear Ulla,

Wouldn´t it be more straightforward to use John Fox´s effects package for this?

library(effects)
plot(effect("variable1:variable2",model))

Best wishes
Christoph

Am 16.05.2014 16:50, schrieb Haverinen-Shaughnessy Ulla:
> Hello, I have built a linear mixed model (with lmer).  To illustrate an interaction between two (originally) continuous variable, I would like to plot the effects of X1 versus Y for 1=low and 2=high X2. I am using plotLMER.fnc but have not been able to figure out the code. Could you help?
> Thanks, Ulla
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list