compute_internal_taxon_specific_latent_trait_precision: Compute Internal Taxon-specific Latent Trait Precision

View source: R/cavi_latent_traits.R

compute_internal_taxon_specific_latent_trait_precisionR Documentation

Compute Internal Taxon-specific Latent Trait Precision

Description

Computes the precision of taxon-specific latent traits at internal nodes of the phylogeny under the approximate posterior distribution for the PLVM.

Usage

compute_internal_taxon_specific_latent_trait_precision(
  child_taxa_conditional_expectation_weights,
  child_taxa_conditional_standard_deviations,
  conditional_standard_deviation,
  perform_checks = TRUE
)

Arguments

child_taxa_conditional_expectation_weights

An L-dimensional vector of real values on the interval [0, 1]. The weight of the taxon-specific latent trait values in the conditional distribution of the latent traits for its child taxa.

child_taxa_conditional_standard_deviations

An L-dimensional vector of real values on the interval [0, 1]. The standard deviation of the taxon-specific latent traits of child taxa conditional on the parent taxon.

conditional_standard_deviation

An L-dimensional vector of real values on the interval [0, 1]. The standard deviation of the taxon-specific latent trait conditional on its parent taxon.

perform_checks

Logical. Check if function inputs are specified correctly.

Value

An L-dimensional vector of positive real values.


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