n_eta: The Number of linear predictors in model

n_etaR Documentation

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 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.


gratia documentation built on April 3, 2025, 11:42 p.m.