predict.hdlm | R Documentation |
Method for calculating predicted response for HDLM
## 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,
...
)
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 |
predict.hdlm
Posterior predictive distribution draws
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.