predict.dlim {dlim}R Documentation

DLIM Predictions

Description

Predicted values based on a dlim object.

Usage

## S3 method for class 'dlim'
predict(
  object,
  newdata = NULL,
  type = c("DLF", "CE", "response"),
  conf.level = 0.95,
  ...
)

Arguments

object

an object of class "dlim"

newdata

a vector of new modifier values for prediction (class "numeric")

type

Type of prediction. "DLF" for the estimated distributed lag functions, "CE" for cumulative effects, "response" for fitted values, or any combination of these in a vector (class "character")

conf.level

The confidence level (class "numeric")

...

additional arguments affecting the predictions produced

Value

This function returns a list of 3 elements:

est_dlim

cumulative and/or point-wise estimates, standard errors, and confidence intervals (class "list")

cb

cross-basis object (class "cross-basis")

model

model object (class "gam")

See Also

dlim

Type vignette('dlimOverview') for a detailed description.


[Package dlim version 0.1.0 Index]