get_dev: Get deviance for a single set of parameter values, used to...

View source: R/model_evaluation.R

get_devR Documentation

Get deviance for a single set of parameter values, used to calculate DIC

Description

Get deviance for a single set of parameter values, used to calculate DIC

Usage

get_dev(
  y,
  X,
  z,
  Z_kron,
  pat_idx,
  pat_idx_long,
  beta,
  sig_list,
  cuts,
  pat_eff,
  miss_mat,
  samp_info,
  marginal
)

Arguments

y

matrix of latent and observed continuous observations

X

design matrix

z

vector of the ordinal outcomes

Z_kron

design matrix for random effects

pat_idx

vector to index patients for both outcomes

beta

matrix of beta values

sig_list

list of covariance matrix values

cuts

vector of cutpoints

pat_eff

matrix of patient effects

miss_mat

matrix to identify locations of missing values

samp_info

list of interal info used for sampling

marginal

logical, indicates of mDIC of cDIC is to be calculated

Value

scalar


nickseedorff/bmrarm documentation built on April 17, 2025, 9:43 p.m.