View source: R/tempo_diagnostics.R
Calculate deviance for a single MCMC iteration for random effects models
1 | tempo_calc_deviance(k, covs, y, params_all, group_ids)
|
k |
the MCMC iteration for which to calculate deviance. |
covs |
the covariate data from |
y |
the original data (same as the y arg to tempo_mcmc()) |
params_all |
output from |
group_ids |
is attr(draws, "group_ids"), a vector of group IDs
corresponding for the rows in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.