compute_individual_specific_latent_trait_expectation: Compute Individual-specific Latent Trait Expectation

View source: R/cavi_latent_traits.R

compute_individual_specific_latent_trait_expectationR Documentation

Compute Individual-specific Latent Trait Expectation

Description

Computes the expected value of the individual-specific latent trait within the PLVM under the approximate posterior distribution.

Usage

compute_individual_specific_latent_trait_expectation(
  auxiliary_trait,
  loading,
  taxon_specific_latent_trait,
  precision_vector,
  individual_specific_latent_trait_precision,
  within_taxon_amplitude,
  perform_checks = TRUE
)

Arguments

auxiliary_trait

A D-dimensional vector of real values. The individual-specific auxiliary trait.

loading

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

taxon_specific_latent_trait

An L-dimensional vector of real values. The taxon-specific latent trait values.

precision_vector

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

individual_specific_latent_trait_precision

A symmetric LxL matrix of real values. The precision associated with individual-specific latent traits.

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

An L-dimensional vector of real values. The expected value of the individual-specific latent trait under the approximate posterior distributiÃ’on


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