compute_mahalanobis_distance.simple
computes the squared mahalanobis distance
between the data and mean at tips of the data in the simple case where the inverse
of the variance matrix is given.
compute_mahalanobis_distance.simple(phylo, Y_data_vec, sim, Sigma_YY_chol_inv,
miss = rep(FALSE, dim(sim)[1] * length(phylo$tip.label)), ...)
Input tree.
(list) : result of function simulate
.
: vector indicating the data at the tips.
: invert of the variance-covariance matrix of the data.
squared Mahalanobis distance between data and mean at the tips.
This function takes parameters sim and Sigma_YY_inv from
compute_mean_variance.simple
. It uses function extract_simulate_internal
to extract the needed quantities from these objects.