sample_gamma_k: Sampling step for gamma_k (factor precisions)

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Sampling step for gamma_k (factor precisions)

Usage

1
sample_gamma_k(zeros, lambda, c = 0, d = 100)

Arguments

zeros

A binary, sparsity inducing matrix of dimenion P x K.

lambda

A standard multivariate normal matrix of factor loadings of dimension P x K.

c

A tunable hyperparameter for the shape parameter of the gamma draw. Default is 0.

d

A tunable hyperparameter for the inverse-scale (rate) parameter of the gamma draw. Default is 100

Value

gamma_k Numeric vector of factor precisions of length K.


EandrewJones/mmBPFA documentation built on Feb. 14, 2021, 11:17 p.m.