tempo_dic: Deviance Information Criterion '('DIC')'

Description Usage Arguments Value

View source: R/tempo_diagnostics.R

Description

Calculate the DIC score for a model using the output from tempo_mcmc()

Usage

1
tempo_dic(draws, parallelize = TRUE, n_cores = NULL)

Arguments

draws

The output from tempo_mcmc().

parallelize

Boolean, should the function be run in parallel. Defaults to TRUE.

n_cores

Integer, number of cores to use for parallel processing. Defaults to NULL. If parallelize = TRUE, and n_cores = NULL (the defaults), tempo_dic() will use parallel::detectCores() - 1 as the number of cores.

Value

The DIC score with attributes for covariates included in the model, and which (if any) regression coefficients were modeled with random effects, and the effective number of parameters (p_d).


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