compute_log_likelihood.simple | R Documentation |
compute_log_likelihood.simple
computes the log-likelihood of the data
in the simple case where the inverse of the variance matrix is given.
compute_log_likelihood.simple( phylo, Y_data_vec, sim, Sigma, Sigma_YY_chol_inv, miss = rep(FALSE, dim(sim)[1] * length(phylo$tip.label)), masque_data = c(rep(TRUE, dim(sim)[1] * length(phylo$tip.label)), rep(FALSE, dim(sim)[1] * phylo$Nnode)), ... )
phylo |
Input tree. |
sim |
(list) : result of function |
Sigma |
: variance-covariance matrix, result of function |
Y_data |
: vector indicating the data at the tips |
Sigma_YY_inv |
: invert of the variance-covariance matrix of the data |
This function takes parameters sim, Sigma and Sigma_YY_inv from
compute_mean_variance.simple
. It uses functions
extract.variance_covariance
, extract.covariance_parents
, and
extract_simulate_internal
to extract the needed quantities from these objects.
log likelihood of the data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.