basis_size | R Documentation |
Extract basis dimension of a smooth
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, ...)
object |
A fitted GAM(M). Currently |
... |
Arguments passed to other methods. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.