compute_individual_specific_latent_trait_precision: Compute Individual-specific Latent Trait Precision

View source: R/cavi_latent_traits.R

compute_individual_specific_latent_trait_precisionR Documentation

Compute Individual-specific Latent Trait Precision

Description

Computes the precision matrix for the approximate posterior distribution of individual-specific latent traits within the PLVM.

Usage

compute_individual_specific_latent_trait_precision(
  precision_vector,
  loading_outer_product_expectation,
  within_taxon_amplitude,
  perform_checks = TRUE
)

Arguments

precision_vector

A D-dimensional vector of positive real values The precision parameters associated with each of the D auxiliary traits.

loading_outer_product_expectation

An LxLxD dimensional array of real values. The expected outer product of the loading under the approximate posterior distribution.

within_taxon_amplitude

An L-dimensional vector of real values on the interval [0, 1]. The within-taxon variation parameters for each of the L latent traits.

perform_checks

Logical. Check if function inputs are specified correctly.

Value

A symmetric LxL matrix of real values. The precision matrix of the individual-specific latent traits under the approximate posterior distribution.


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