Plot the fitted values, plus pointwise credible intervals, against the data. For simulations, one may use the true values in place of the data.
plot_fitted(y, post_y, y_hat = NULL, alpha = 0.05, ...)
A plot with the fitted values and the credible intervals against the data
n x 1
vector of data
Nsims x n
matrix of simulated fitted values, where Nsims
is the
number of simulations
n x 1
vector of fitted values; if NULL, use the pointwise sample mean colMeans(post_y)
confidence level for the credible intervals
other arguments for plotting