R/estimate_smooth.R
estimate_smooth.RdThis 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", ... )
| 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 |
| transform | Can be |
| ... | Arguments passed to or from other methods. |
A dataframe of linear description of non-linear terms.
See the documentation for your object's class: