The mean prediction is calculated as the mean of the predictive samples.
se_mean_sample(observed, predicted)
Arguments
observed: A vector with observed values of size n
predicted: nxN matrix of predictive samples, n (number of rows) being the number of data points and N (number of columns) the number of Monte Carlo samples. Alternatively, predicted can just be a vector of size n.