Extracts the number of linear predictors
from the fitted model.
Usage
n_eta(model, ...)
# S3 method for class 'gam'
n_eta(model, ...)
Arguments
- model
a fitted model. Currently, only models inheriting from class
"gam"
are supported.
- ...
arguments passed to methods.
Value
An integer vector of length 1 containing the number of linear
predictors in the model.