View source: R/gratia_derivatives.R
| derivatives.galamm | R Documentation |
This function uses gratia::derivatives to compute derivatives of
estimated smooth via finite differences. See
gratia::derivatives() for details. When object is not of class
galamm, it is forwarded to gratia::derivatives().
## S3 method for class 'galamm'
derivatives(object, ...)
object |
An object of class |
... |
Other arguments passed on to |
A tibble.
Other details of model fit:
VarCorr(),
appraise.galamm(),
coef.galamm(),
confint.galamm(),
deviance.galamm(),
factor_loadings.galamm(),
family.galamm(),
fitted.galamm(),
fixef(),
formula.galamm(),
llikAIC(),
logLik.galamm(),
model.frame.galamm(),
nobs.galamm(),
predict.galamm(),
print.VarCorr.galamm(),
ranef.galamm(),
residuals.galamm(),
response(),
sigma.galamm(),
vcov.galamm()
dat <- subset(cognition, domain == 1 & item == "11")
dat$y <- dat$y[, 1]
mod <- galamm(y ~ s(x) + (1 | id), data = dat)
dd <- derivatives(mod)
draw(dd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.