predict.sim_dlim {dlim} | R Documentation |
Simulated DLIM Predictions
Description
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.
Usage
## S3 method for class 'sim_dlim'
predict(object, newdata = NULL, type = c("DLF", "CE", "response"), ...)
Arguments
object |
an object of class " |
newdata |
vector of modifiers for inference (class " |
type |
Type of prediction. "response" for predicted responses, "DLF" for the estimated distributed lag functions, "CE" for cumulative effects (class " |
... |
additional arguments affecting the predictions produced |
Value
This function returns a list of 4 or 7 elements:
est_dlim |
|
cb |
cross-bais from |
fit |
|
true_betas |
|
cb_dlm |
|
model_dlm |
|
est_dlm |
cumulative and/or point-wise estimates, standard errors, and confidence intervals for the DLM (class " |
See Also
Type vignette('dlimOverview')
for a detailed description.