Learn R Programming

itsadug (version 0.8)

get_modelterm: Get estimated for selected model terms.

Description

Get estimated for selected model terms.

Usage

get_modelterm(model, select, cond = NULL, n.grid = 30, se = TRUE,
  f = 1.96)

Arguments

model
A gam object, produced by gam or bam.
select
A number, indicating the model term to be selected.
cond
A named list of the values to restrict the estimates for the random predictor terms. When NULL (default) all levels are returned. Only relevant for complex interactions, which involve more than two dimensions.
n.grid
Number of data points estimated for each random smooth.
se
Logical: whether or not to return the confidence interval or standard error around the estimates.
f
A number to scale the standard error. Defaults to 1.96, resulting in 95% confidence intervals. For 99% confidence intervals use a value of 2.58.

Value

  • A data frame with estimates for the selected smooth term.

See Also

Other functions for model predictions: get_difference; get_predictions; get_random

Examples

Run this code
# see the vignette for examples:
vignette("plotfunctions", package="itsadug")

Run the code above in your browser using DataLab