predict | R Documentation |
predict generic function for S3method
predict(
x,
new.data,
new.exposure.data,
ci.level = 0.95,
type = "response",
outcome = NULL,
fixed.idx = list(),
est.dlm = FALSE,
verbose = TRUE,
...
)
## S3 method for class 'hdlm'
predict(
x,
new.data,
new.exposure.data,
ci.level = 0.95,
type = "response",
outcome = NULL,
fixed.idx = list(),
est.dlm = FALSE,
verbose = TRUE,
...
)
## S3 method for class 'hdlmm'
predict(
x,
new.data,
new.exposure.data,
ci.level = 0.95,
type = "response",
outcome = NULL,
fixed.idx = list(),
est.dlm = FALSE,
verbose = TRUE,
...
)
x |
fitted dlmtree model with class 'hdlm', 'hdlmm' |
new.data |
new data frame which contains the same covariates and modifiers used to fit the model |
new.exposure.data |
new data frame/list which contains the same length of exposure lags used to fit the 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 |
... |
not used |
list with the following elements:
posterior predictive mean of fixed effect
lower/upper bound of posterior predictive distribution of fixed effect
estimated exposure effect
lower bound of estimated exposure effect
upper bound of estimated exposure effect
posterior predictive mean of exposure effect
lower/upper bound of posterior predictive distribution of exposure effect
posterior predictive mean
lower/upper bound of posterior predictive distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.