How many smooths in a fitted model
Usage
n_smooths(object)
# S3 method for default
n_smooths(object)
# S3 method for gam
n_smooths(object)
# S3 method for gamm
n_smooths(object)
# S3 method for bam
n_smooths(object)
Arguments
- object
a fitted GAM or related model. Typically the result of a call to
mgcv::gam()
,mgcv::bam()
, ormgcv::gamm()
.