has_theta | R Documentation |
Are additional parameters available for a GAM?
has_theta(object)
object |
an R object, either a |
A logical; TRUE
if additional parameters available, FALSE
otherwise.
load_mgcv()
df <- data_sim("eg1", dist = "poisson", seed = 42, scale = 1 / 5)
m <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3),
data = df, method = "REML",
family = nb()
)
has_theta(m)
p <- theta(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.