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_dlimelement frompredict.dlim(class "list")- cb
cross-bais from
object(class "cross-basis")- fit
fitfromobject(class "lm", "glm", "gam")- true_betas
true_betasfromobject(class "matrix")- cb_dlm
cb_dlmfromobject(class "crosspred")- model_dlm
model_dlmfromobject(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.