buildgls {buildmer} | R Documentation |
buildmer
to fit generalized-least-squares models using gls
from nlme
Use buildmer
to fit generalized-least-squares models using gls
from nlme
buildgls(formula, data = NULL, buildmerControl = buildmerControl(), ...)
formula |
See the general documentation under |
data |
See the general documentation under |
buildmerControl |
Control arguments for buildmer — see the general documentation under |
... |
Additional options to be passed to |
A workaround is included to prevent an error when the model matrix is of less than full rank. The summary output of such a model will look a bit strange!
library(buildmer) library(nlme) vowels$event <- with(vowels,interaction(participant,word)) model <- buildgls(f1 ~ timepoint*following,correlation=corAR1(form=~1|event),data=vowels)