waic | R Documentation |
Calculates diagnostic statistics for a fitted Bayesian model: Watanabe-Akaike information criterion
(WAIC
) and Leave-on-out cross-validation (LOO-CV
). This is a generic version of the
method get.waic()
for the PMXStanFit
class.
waic(fit, complete = FALSE)
fit |
a |
complete |
a logical to select whether to input all pointwise and total statistics ( |
No return value, called for side effects
PMXStanFit
for the method get.waic()
, and related references.
m1 <- PMXStanModel(path = tempfile("pk_m1"), pk.struct = "1-cmpt", compile=TRUE) data("examples_data") dat <- prepareInputData(data.source = d1_nm_poppk, model = m1) fit <- PMXStanFit(m1, dat, iter=100, chains=1) fit$get.waic() waic(fit, complete = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.