powered by
Predict using a gmjmcmc result object.
# S3 method for gmjmcmc predict(object, x, link = function(x) x, quantiles = c(0.025, 0.5, 0.975), ...)
A list containing aggregated predictions and per model predictions.
Aggregated predictions with mean and quantiles.
A list of lists containing individual predictions per model per population in object.
The model to use.
The new data to use for the prediction, a matrix where each row is an observation.
The link function to use
The quantiles to calculate credible intervals for the posterior moddes (in model space).
Not used.
result <- gmjmcmc( matrix(rnorm(600), 100), P = 2, gaussian.loglik, loglik.alpha = gaussian.loglik.alpha, c("p0", "exp_dbl") ) preds <- predict(result, matrix(rnorm(600), 100))
Run the code above in your browser using DataLab