Dear Axel,

There only one fixed effect in the model, ns(Days, 3), so I don't know what you 
expected.

Best,
 John
--------------------------------------
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
Web: socialsciences.mcmaster.ca/jfox/



> -----Original Message-----
> From: Axel Urbiz <axel.ur...@gmail.com>
> Sent: Friday, May 15, 2020 5:33 PM
> To: Fox, John <j...@mcmaster.ca>; R-help@r-project.org
> Subject: "effects" package with "lme4"
> 
> Hello John and others,
> 
> I’d appreciate your help as I’m trying to plot the effect of predictor
> “Days” on Reaction by Subject. I’m only getting one plot in the example
> below.
> 
> ### Start example
> 
> library(lme4)
> library(splines)
> data("sleepstudy")
> 
> fm1 <- lmer(Reaction ~ ns(Days, 3) + (ns(Days, 3) | Subject), sleepstudy)
> coef(fm1)
> plot(allEffects(fm1))
> 
> ### End example
> 
> Thanks,
> Axel.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to