JointAI (version 1.0.6)

default_hyperpars: Get the default values for hyper-parameters

Description

This function returns a list of default values for the hyper-parameters.

Usage

default_hyperpars()

Arguments

Details

norm: hyper-parameters for normal and log-normal models

mu_reg_normmean in the priors for regression coefficients
tau_reg_normprecision in the priors for regression coefficients
shape_tau_normshape parameter in Gamma prior for the precision of the (log-)normal distribution
rate_tau_normrate parameter in Gamma prior for the precision of the (log-)normal distribution

gamma: hyper-parameters for Gamma models

mu_reg_gammamean in the priors for regression coefficients
tau_reg_gammaprecision in the priors for regression coefficients
shape_tau_gammashape parameter in Gamma prior for the precision of the Gamma distribution
rate_tau_gammarate parameter in Gamma prior for the precision of the Gamma distribution

beta: hyper-parameters for beta models

mu_reg_betamean in the priors for regression coefficients
tau_reg_betaprecision in the priors for regression coefficients
shape_tau_betashape parameter in Gamma prior for the precision of the beta distribution
rate_tau_betarate parameter in Gamma prior for precision of the of the beta distribution

binom: hyper-parameters for binomial models

mu_reg_binommean in the priors for regression coefficients
tau_reg_binomprecision in the priors for regression coefficients

poisson: hyper-parameters for poisson models

mu_reg_poissonmean in the priors for regression coefficients
tau_reg_poissonprecision in the priors for regression coefficients

multinomial: hyper-parameters for multinomial models

mu_reg_multinomialmean in the priors for regression coefficients
tau_reg_multinomialprecision in the priors for regression coefficients

ordinal: hyper-parameters for ordinal models

mu_reg_ordinalmean in the priors for regression coefficients
tau_reg_ordinalprecision in the priors for regression coefficients
mu_delta_ordinalmean in the prior for the intercepts
tau_delta_ordinalprecision in the priors for the intercepts

ranef: hyper-parameters for the random effects variance-covariance matrices (when there is only one random effect a Gamma distribution is used instead of the Wishart distribution)

shape_diag_RinvDshape parameter in Gamma prior for the diagonal elements of RinvD
rate_diag_RinvDrate parameter in Gamma prior for the diagonal elements of RinvD
KinvD_expra character string that can be evaluated to calculate the number of degrees of freedom in the Wishart distribution used for the inverse of the variance-covariance matrix for random effects, depending on the number of random effects nranef

surv: parameters for survival models (survreg, coxph and JM)

mu_reg_survmean in the priors for regression coefficients
tau_reg_survprecision in the priors for regression coefficients

Examples

Run this code
default_hyperpars()

# To change the hyper-parameters:
hyp <- default_hyperpars()
hyp$norm['rate_tau_norm'] <- 1e-3
mod <- lm_imp(y ~ C1 + C2 + B1, data = wideDF, hyperpars = hyp, mess = FALSE)


Run the code above in your browser using DataLab