compute_mean_variance.simple | R Documentation |
compute_mean_variance.simple
computes the quantities needed to compute
mean and variance matrix with parameters params_old.
compute_mean_variance.simple(
phylo,
times_shared,
distances_phylo,
process = c("BM", "OU", "rBM", "scOU"),
params_old,
masque_data = c(rep(TRUE, attr(params_old, "p_dim") * length(phylo$tip.label)),
rep(FALSE, attr(params_old, "p_dim") * phylo$Nnode)),
sim = NULL,
U_tree = NULL,
...
)
phylo |
Input tree. |
times_shared |
(matrix) : times of shared ancestry, result of function
|
distances_phylo |
(matrix) : phylogenetic distance, result of function
|
process |
a two letter string indicating the process to consider |
params_old |
a list of parameters to be used in the computations |
This function is used by functions compute_E.simple
and
compute_log_likelihood.simple
.
sim (list) : result of function simulate
with the appropriate
parameters
Sigma matrix of variance covariance, result of function
compute_variance_covariance
Sigma_YY_chol_inv invert of Cholesky matrix of Sigma_YY: (Sigma_YY)^(-1) = tcrossprod(Sigma_YY_chol_inv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.