Description Usage Arguments Value See Also Examples
This function computes Bayesian posterior predictions and prediction intervals.
1 2 |
object |
a bcgpfit object |
newdata |
Optionally, an nPred x d numeric matrix of new data
locations at which to predict. If omitted, the training data matrix is used.
If |
prob |
a single number greater than 0 and less than 1 that specifes the
width of the (equal-tailed) posterior prediction interval. For example,
|
An instance of S4 class bcgpfitpred
bcgpmodel bcgpfit
posterior_predict
1 2 3 4 5 6 7 8 9 10 11 | simData <- bcgpsims(composite = TRUE, stationary = FALSE, noise = FALSE,
d = 2, decomposition = TRUE)
model <- bcgpmodel(x = simData@training$x, y = simData@training$y,
composite = TRUE, stationary = FALSE, noise = FALSE)
fit <- bcgp_sampling(model, scaled = TRUE, cores = 4, nmcmc = 500,
burnin = 200)
fit
print(fit, pars = c("beta0", "w", "rhoG", "rhoL"), digits_summary = 3)
predict(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.