View source: R/model_evaluation.R
get_dev | R Documentation |
Get deviance for a single set of parameter values, used to calculate DIC
get_dev(
y,
X,
z,
Z_kron,
pat_idx,
pat_idx_long,
beta,
sig_list,
cuts,
pat_eff,
miss_mat,
samp_info,
marginal
)
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 |
scalar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.