set_NG: Set up a Normal-Gamma prior

View source: R/41_set_options.R

set_NGR Documentation

Set up a Normal-Gamma prior

Description

Set up a Normal-Gamma prior

Usage

set_NG(
  mu = 0,
  precision = 1e-08,
  shape = 0.01,
  rate = 0.01,
  beta = NULL,
  sigma = NULL
)

set_SNG(
  lambda_a = 0.01,
  lambda_b = 0.01,
  theta_scale = 0,
  theta_a = 1,
  lambda = 1,
  tau = 10,
  theta = 0.1
)

set_HS(lambda = 1, tau = 1, zeta = 1, nu = 1)

Arguments

mu

Numeric scalar or vector with the prior mean of 'beta'.

precision

Numeric scalar or matrix with the prior precision of 'beta'. Not used for shrinkage priors.

shape, rate

Numeric scalars with the prior shape and rate of 'sigma'.

lambda_a, lambda_b

Numeric scalars with the prior shape and rate of 'lambda'.

theta_scale

Numeric scalar with the proposal scale of 'theta'. Defaults to zero for a fixed value.

theta_a

Numeric scalar with the prior rate of 'theta'.

lambda, tau, theta, zeta, nu, beta, sigma

Numerics with starting values for the respective parameter.

Value

Returns a list with priors and settings.


bsreg documentation built on March 18, 2022, 5:36 p.m.