Re: [R] "effects" package with "lme4"

2020-05-15 Thread Fox, John
Dear Axel, > On May 15, 2020, at 7:39 PM, Axel Urbiz wrote: > > Dear John, > > Thank you for your response. > > My apologies as I’m only recently getting exposed to mixed-model. My > understanding, is that the model specified below also has random intercepts > and slope, as they vary by

Re: [R] "effects" package with "lme4"

2020-05-15 Thread Axel Urbiz
Dear John, Thank you for your response. My apologies as I’m only recently getting exposed to mixed-model. My understanding, is that the model specified below also has random intercepts and slope, as they vary by Subject. `coef(fm1)` shows this. I was looking to plot the fitted splines by

Re: [R] "effects" package with "lme4"

2020-05-15 Thread Fox, John
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

[R] "effects" package with "lme4"

2020-05-15 Thread Axel Urbiz
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) |