Skip to contents

Extracts the number of observations from a model.

Usage

# S4 method for EL
nobs(object, ...)

# S4 method for SummaryEL
nobs(object, ...)

# S4 method for SummaryLM
nobs(object, ...)

Arguments

object

An object that contains the number of observations.

...

Further arguments passed to methods.

Value

A single integer.

See also

Examples

data("precip")
fit <- el_mean(precip, par = 40)
nobs(fit)
#> [1] 70