Method for sample-based prediction using the output of MfU.Sample.Run.
# S3 method for MfU
predict(object, fpred, ...)
# S3 method for predict.MfU
summary(object, start = round(nrow(object)/2) + 1
, end = nrow(object), thin = 1
, quantiles = c(0.025, 0.5, 0.975), ...)
# S3 method for summary.predict.MfU
print(x, n = 6L, ...)predict.MfU produces a matrix with number of rows equal to the length of prediction vector produces by fpred. Its numnber of columns is equal to the number of samples used within the user-specified range, and after thinning (if any). summary.predict.MfU produces sample-based prediction mean, standard deviation, quantiles, and effective sample size.
Object of class "MfU" (output of MfU.Sample.Run) or "predict.MfU" (output of predict.MfU).
Prediction function, accepting a single value for the state vector and producing a vector of outputs.
Which iteration to start from for calculating sample statistics.
Last iteration to use for calculating sample statistics. Defaults to last iteration.
One out of thin samples are kept for calculating sample statistics. Default is 1, using all samples within specified range.
Values for which sample-based quantiles are calculated.
An object of class "summary.predict.MfU".
Number of rows of prediction matrix to print.
Arguments passed to/from other functions.
Alireza S. Mahani, Mansour T.A. Sharabiani
Mahani A.S and Sharabiani M.T.A. (2017). Multivariate-From-Univariate MCMC Sampler: The R Package MfUSampler. Journal of Statistical Software, Code Snippets, 78(1), 1-22. doi:10.18637/jss.v078.c01
MfU.Sample.Run