Plot estimated distributed lag function values from a DLIM object, can also compare those of a DLM
Usage
plot_cumulative(
new_modifiers,
mod_fit,
dlm_fit = NULL,
mod_name = NULL,
mod_trans = NULL,
link_trans = NULL
)Arguments
- new_modifiers
a vector of new modifier values for prediction (class "
numeric")- mod_fit
DLIM model object (class "
dlim")- dlm_fit
a list containing a
crossbasisobject from the dlnm package as the first element and a DLM model object as the second element (class "list")- mod_name
modifier name (character)
- mod_trans
if modifiers are transformed, specify back transformation function (class "
character")- link_trans
if family for
glmis not Gaussian, specify back transformation to undo link function (class "character")
See also
Type vignette('dlimOverview') for a detailed description.