Learn R Programming

gratia (version 0.10.0)

n_eta: The Number of linear predictors in model

Description

[Experimental] Extracts the number of linear predictors from the fitted model.

Usage

n_eta(model, ...)

# S3 method for gam n_eta(model, ...)

Value

An integer vector of length 1 containing the number of linear predictors in the model.

Arguments

model

a fitted model. Currently, only models inheriting from class "gam" are supported.

...

arguments passed to methods.