initialise_individual_specific_latent_traits: Initialise the Individual-specific latent traits

View source: R/cavi_latent_traits.R

initialise_individual_specific_latent_traitsR Documentation

Initialise the Individual-specific latent traits

Description

Initialises individual specific latent traits given the auxiliary traits, a set of loadings, and a vector of precision parameters associated with each multivariate trait.

Usage

initialise_individual_specific_latent_traits(
  auxiliary_traits,
  loading,
  precision = 1,
  perform_checks = TRUE
)

Arguments

auxiliary_traits

An NxD' matrix of real numbers. The initial matrix of auxiliary traits.

loading

A DxL dimensional matrix of real values. The PLVM loading.

precision

A positive real valued scalar. A precision value allowing the latent variables to be initialised. Larger imply that auxiliary traits are more precisely observed.

perform_checks

Logical. Check if function inputs are specified correctly.

Value

An NxL dimensional matrix of real-valued latent traits.


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