initialise_loading_ard_precision: Initialise ARD Precision

View source: R/cavi_loading.R

initialise_loading_ard_precisionR Documentation

Initialise ARD Precision

Description

Initialiase the Automatic Relevance Determination hyper-parameter in the Gaussian process prior on PLVM loadings.

Usage

initialise_loading_ard_precision(
  L,
  ard_shape = 1,
  ard_rate = 1,
  ard_precision = NULL,
  perform_checks = TRUE
)

Arguments

L

An integer. The dimension of latent traits.

ard_shape

A positive real-valued scalar. The shape of the Gamma distribution generating initial ARD precision hyper-parameters

ard_rate

A positive real-valued scalar. The rate of the Gamma distribution generating initial ARD precision hyper-parameters

ard_precision

An L-dimensional vector of real numbers. The initial ARD precision hyper-parameters on the loadings. When non-null checks that ard_precision is of the correct type and size.

perform_checks

Logical. Check if function inputs are specified correctly.

Value

An L-dimensional vector of real numbers. The initial ARD precision hyper-parameters on the loadings


jpmeagher/vbar documentation built on Nov. 22, 2022, 5:48 a.m.