buildgamm4 | R Documentation |
buildmer
to fit generalized additive models using package gamm4
Use buildmer
to fit generalized additive models using package gamm4
buildgamm4(
formula,
data = NULL,
family = gaussian(),
buildmerControl = buildmerControl()
)
formula |
See the general documentation under |
data |
See the general documentation under |
family |
See the general documentation under |
buildmerControl |
Control arguments for buildmer — see the general documentation under |
The fixed and random effects are to be passed as a single formula in lme4
format. This is internally split up into the appropriate fixed
and random
parts.
buildmer-package
library(buildmer)
if (requireNamespace('gamm4')) model <- buildgamm4(f1 ~ s(timepoint,by=following) +
s(participant,timepoint,by=following,bs='fs'),data=vowels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.