predict.hdlm {dlmtree} | R Documentation |
Calculates predicted response for HDLM
Description
Method for calculating predicted response for HDLM
Usage
## S3 method for class 'hdlm'
predict(
object,
new.data,
new.exposure.data,
ci.level = 0.95,
type = "response",
outcome = NULL,
fixed.idx = list(),
est.dlm = FALSE,
verbose = TRUE,
...
)
Arguments
object |
fitted dlmtree model with class hdlm |
new.data |
new data frame which contains the same covariates and modifiers used to fit HDLM model |
new.exposure.data |
new data frame/list which contains the same length of exposure lags used to fit HDLM model |
ci.level |
credible interval level for posterior predictive distribution |
type |
type of prediction: "response" (default) or "waic". "waic" must be specified with 'outcome' parameter |
outcome |
outcome required for WAIC calculation |
fixed.idx |
fixed index |
est.dlm |
flag for estimating dlm effect |
verbose |
TRUE (default) or FALSE: print output |
... |
additional parameters |
Details
predict.hdlm
Value
Posterior predictive distribution draws
[Package dlmtree version 1.0.0 Index]