Learn R Programming

gratia (version 0.9.0)

theta: General extractor for additional parameters in mgcv models

Description

General extractor for additional parameters in mgcv models

Usage

theta(object, ...)

# S3 method for gam theta(object, transform = TRUE, ...)

Value

Returns a numeric vector of additional parameters

Arguments

object

a fitted model

...

arguments passed to other methods.

transform

logical; transform to the natural scale of the parameter

Examples

Run this code
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()
)
p <- theta(m)

Run the code above in your browser using DataLab