sim_meff: Simulate priors on shrinkage and number of effective...

Description Usage Arguments Value

View source: R/sim_kappa.R

Description

Draw samples from the implied priors on the shrinkage parameters (sim_kappa) and number of effective parameters (sim_meff) in hierarchical scale-mixture of normal shrinkage priors.

Usage

1
2
3
sim_meff(lambda, tau = 1, sigma = 1, D = 1, n = 1, sims = 1000)

sim_kappa(lambda, tau = 1, sigma = 1, n = 1, sims = 1000)

Arguments

lambda

Either a number or a function which samples from the local scale, τ.

tau

Either a number or a function which samples from the global scales, λ.

sigma

Either a number or a function which samples from the observation scale, σ.

D

The number of parameters

n

The number of observations in the data

sims

The number of samples to draw.

Value

A numeric vector of samples


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