Plot the fitted values, plus pointwise credible intervals, against the data. For simulations, one may use the true values in place of the data.
Arguments
- y
n x 1
vector of data- post_y
Nsims x n
matrix of simulated fitted values, whereNsims
is the number of simulations- y_hat
n x 1
vector of fitted values; if NULL, use the pointwise sample meancolMeans(post_y)
- alpha
confidence level for the credible intervals
- ...
other arguments for plotting