compute_p_si | R Documentation |
This function computes the probability for each observed choice at the (normalized, burned and thinned) samples from the posterior.
These probabilities are required to compute the WAIC
and the
marginal model likelihood mml
.
compute_p_si(x, ncores = parallel::detectCores() - 1, recompute = FALSE)
x |
An object of class |
ncores |
[ If set to 1, no parallel backend is used. |
recompute |
[ |
The object x
, including the object p_si
, which is a matrix of
probabilities, observations in rows and posterior samples in columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.