Skip to contents

Extract the Number of Observations from a galamm Fit

Usage

# S3 method for class 'galamm'
nobs(object, ...)

Arguments

object

An object of class galamm returned from galamm.

...

Optional arguments passed on to other methods. Currently not used.

Value

A number

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)
#> [1] 180
nrow(sleepstudy)
#> [1] 180