tempo_calc_deviance: Deviance

Description Usage Arguments

View source: R/tempo_diagnostics.R

Description

Calculate deviance for a single MCMC iteration for random effects models

Usage

1
tempo_calc_deviance(k, covs, y, params_all, group_ids)

Arguments

k

the MCMC iteration for which to calculate deviance.

covs

the covariate data from tempo_mcmc() output, draws, attr(draws, "covariates")

y

the original data (same as the y arg to tempo_mcmc())

params_all

output from tempo_calc_all_params_re()

group_ids

is attr(draws, "group_ids"), a vector of group IDs corresponding for the rows in y


vlandau/tempo documentation built on March 18, 2020, 12:04 a.m.