powered by
Compute WAIC for all outcomes.
waic_all(iter, l_pred)
The length of the sampled chain.
A iter x D matrix of predictive likelihoods (NOT log-likelihoods).
iter
Vector of (1) WAIC for model, (2) standard error for WAIC, and (3) the effective number of parameters.
# NOT RUN { data(teacher_rate) fit_mlr <- gibbs_mlr(rating ~ grade, data = teacher_rate, m = 5) waic_all(iter = 5, t(lpd(fit_mlr))) # }
Run the code above in your browser using DataLab