View source: R/cavi_latent_traits.R
compute_individual_specific_latent_trait_elbo | R Documentation |
Compute the contribution of individual specific latent traits to the Evidence Lower Bound (ELBO) of a PLVM given the approximate posterior distribution for loadings and latent traits
compute_individual_specific_latent_trait_elbo( individual_specific_latent_trait_expectation, taxon_id, phy, terminal_taxon_specific_latent_trait_expectation, individual_specific_latent_trait_covariance, individual_specific_latent_trait_outer_product_expectation, terminal_taxon_latent_trait_outer_product_expectation, within_taxon_amplitude, perform_checks = TRUE )
individual_specific_latent_trait_expectation |
A NxL matrix of real values. The expected value of the individual specific latent traits. |
taxon_id |
A N-dimensional vector of labels. Matches each individual specific latent trait to a terminal node in phy. Each element must correspond to one of phy$tip.labels. |
phy |
An object of class "phylo". |
terminal_taxon_specific_latent_trait_expectation |
A SxL matrix of real values. The expected taxon-specific latent trait for terminal nodes in phy. Rows must be ordered by phy$tip.labels. |
individual_specific_latent_trait_covariance |
A LxL covariance matrix. The covariance of individual specific latent traits under the approximate posterior. |
individual_specific_latent_trait_outer_product_expectation |
A LxLxN array of real values. The expected outer product of individual specific latent traits under the approximate posterior. |
terminal_taxon_latent_trait_outer_product_expectation |
A LxLxS array of real values. The expected outer product of taxon specific latent traits at terminal nodes under the approximate posterior. |
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. |
A real valued scalar. The contribution of individual specific latent traits to the ELBO.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.