This function estimates cumulative and non-cumulative lag/modifier coefficients from a model in which the response is regressed on a cross-basis generated by the cross_basis()
function.
Arguments
- object
an object of class "
dlim
"- newdata
vector of modifiers for inference (class "
numeric
")- type
Type of prediction. "response" for predicted responses, "DLF" for the estimated distributed lag functions, "CE" for cumulative effects (class "
character
")- ...
additional arguments affecting the predictions produced
Value
This function returns a list of 4 or 7 elements:
- est_dlim
est_dlim
element frompredict.dlim
(class "list
")- cb
cross-bais from
object
(class "cross-basis
")- fit
fit
fromobject
(class "lm
", "glm
", "gam
")- true_betas
true_betas
fromobject
(class "matrix
")- cb_dlm
cb_dlm
fromobject
(class "crosspred
")- model_dlm
model_dlm
fromobject
(class "lm
", "glm
", "gam
")- est_dlm
cumulative and/or point-wise estimates, standard errors, and confidence intervals for the DLM (class "
list
")
See also
Type vignette('dlimOverview')
for a detailed description.