This function summarise the smooth term trend in terms of linear segments. Using the aproximative derivative, it separates a non-linear vector into quasi-linear segments (in which the trend is either positive or negative). Each of this segment its characterised by its beginning, end, size (in proportion, relative to the total size) trend (the linear regression coefficient) and linearity (the R2 of the linear regression).

estimate_smooth(
  model,
  smooth = NULL,
  levels = NULL,
  length = 200,
  transform = "response",
  ...
)

Arguments

model

A Bayesian model.

smooth

A character indicating the name of the "smooth" term.

levels

A character vector indicating the variables over which the slope will be computed. If NULL (default), it will select all the remaining predictors.

length

Passed to visualisation_matrix if data = "grid".

transform

Can be "none" (default for contrasts), "response" (default for means), "mu", "unlink", "log". "none" will leave the values on scale of the linear predictors. "response" will transform them on scale of the response variable. Thus for a logistic model, "none" will give estimations expressed in log-odds (probabilities on logit scale) and "response" in terms of probabilities.

...

Arguments passed to or from other methods.

Value

A dataframe of linear description of non-linear terms.

Details

See the documentation for your object's class: