Skip to contents

Function to update

Usage

lambda2_update(
  lambda_2,
  alpha_tau,
  tau_vec,
  mu_tau,
  sigma_tau,
  window,
  trunc = c(0, 100)
)

Arguments

lambda_2

numeric > 0, parameter to the exponential prior Exp(lambda_2)

alpha_tau

numeric > 0, current value of alpha_tau shape parameter in tau_k prior

window

numeric > 0, parameter to set step size for tau update proposals from log-normal

trunc

numeric > 0, truncation for regularization parameter tau_k

tau_k

numeric > 0, current value of tau for Kth subject

Value

Returns list of MH-step updated (or not) lambda_2 scalar value and a logicial T/F whether the proposal was accepted

Examples

lambda2_update(lambda_2, alpha_tau, tau_vec, mu_tau, sigma_tau, window, trunc = c(0, 100))
#> Error in loadNamespace(x): there is no package called ‘truncdist’