basis_size {gratia} | R Documentation |
Extract basis dimension of a smooth
Description
Extract basis dimension of a smooth
Usage
basis_size(object, ...)
## S3 method for class 'mgcv.smooth'
basis_size(object, ...)
## S3 method for class 'gam'
basis_size(object, ...)
## S3 method for class 'gamm'
basis_size(object, ...)
Arguments
object |
A fitted GAM(M). Currently |
... |
Arguments passed to other methods. |
Examples
load_mgcv()
df <- data_sim("eg1", n = 200, seed = 1)
m <- bam(y ~ s(x0) + s(x1) + s(x2) + s(x3), data = df)
basis_size(m)
[Package gratia version 0.9.2 Index]