kappa_moments: Moments for shrinkage and number of effective parameters

Description Usage Arguments Details Value

View source: R/kappa_moments.R

Description

Means and variances for the shrinkage parameter, kappa, and the number of effective parameters, m_{eff}, in regression problems using scale-mixture of normal shrinkage priors.

Usage

1
2
3
kappa_moments(tau, sigma = 1, n = 1)

meff_moments(tau, sigma = 1, n = 1, D = 1)

Arguments

tau

Numeric. The global scale parameter.

sigma

Numeric. The observation disturbance scale parameter.

n

Integer. The number of observations.

D

Integer. The number of parameters.

Details

The mean and variance for the shrinkage parameter κ given the global scale τ, and observation disturbance scale σ are: \begin{aligned}[t]\ E(κ_j | τ, σ) &= \frac{1}{1 + σ^{-1} τ √{n}} , \\ Var(κ_j | τ, σ) &= \frac{σ^{-1} τ √{n}}{2(1 + σ^{-1} τ √{n})^2} \\ \end{aligned} Likewise, the mean and variance for the number of effective parameters m_{eff} for D parameters is, \begin{aligned}[t] E(m_{eff} | τ, σ) &= \frac{1}{1 + σ^{-1} τ √{n}} D, \\ Var(m_{eff} | τ, σ) &= \frac{σ^{-1} τ √{n}}{2(1 + σ^{-1} τ √{n})^2} D . \\ \end{aligned}

Value

kappa_moments

A data frame with columns: tau, sigma, n, mean, and var.

meff_moments

A data frame with columns: tau, sigma, n, D, mean, and var.


jrnold/bayz documentation built on May 5, 2019, 5:52 p.m.