| nobs.galamm {galamm} | R Documentation |
Extract the Number of Observations from a galamm Fit
Description
Extract the Number of Observations from a galamm Fit
Usage
## S3 method for class 'galamm'
nobs(object, ...)
Arguments
object |
An object of class |
... |
Optional arguments passed on to other methods. Currently not used. |
Value
A number
See Also
Other details of model fit:
VarCorr(),
coef.galamm(),
confint.galamm(),
deviance.galamm(),
factor_loadings.galamm(),
family.galamm(),
fitted.galamm(),
fixef(),
formula.galamm(),
llikAIC(),
logLik.galamm(),
predict.galamm(),
print.VarCorr.galamm(),
ranef.galamm(),
residuals.galamm(),
sigma.galamm(),
vcov.galamm()
Examples
# Example model from lme4
data(sleepstudy, package = "lme4")
fm1 <- galamm(Reaction ~ Days + (Days | Subject), data = sleepstudy)
# There are 180 observations, which matches the number of rows in sleepstudy
nobs(fm1)
nrow(sleepstudy)
[Package galamm version 0.2.0 Index]