[R] Random effects in package mgcv
deanforce14 at gmail.com
Wed Apr 27 16:12:48 CEST 2016
Hello R users,
I have a quick question I was hoping to get your input on. I am new to R
and the smooth statistical regression world, and am trying to wrap my mind
around the issues concerning using splines for mixed effect modeling.
My question is the following: in the ‘gamm’ function, generalized additive
mixed models can be estimated by including random components. These can be
explicitly defined in the syntax, where you can also define whether the
random component is an intercept, slope, or both. My understanding is that
in the gam/bam function the same is achieved by including the bs="re”
option for random intercepts and linear random slopes. Am I correct? If so,
is there a way to specify whether it is the intercept or slope we are
interested in, and does that have any effect on the output of the model?
I hope these questions make sense, and I look forward to learning more
about this. Thanks for taking the time to read through this email.
[[alternative HTML version deleted]]
More information about the R-help