I can achieve mahalanobis distance value by the following codes however, I need to achieve mahalanobis distance matrix.
x
You can get the pairwise squared generalized Mahalanobis distance between all pairs of rows in a data frame, with respect to a covariance matrix, using the D2.dist() funtion in the biotools package.
require(biotools)
distD2
@ Figueroa
Thank you for your help!
Best regards
Kai
I use the Matching package, but this is for creating a matched treatment and control dataset for quasi-experimental design.
31 December 2017 837 5 View
#The following text are codes in R library(vegan)data(dune)dunedata(dune.env)dune.envresults
11 December 2015 1,792 10 View
11 December 2015 9,021 0 View
network meta-analysis
10 November 2015 5,111 5 View
Good afternoon, I recently used OmniLog from BIOLOG for my experimentations : I tested the metabolism of different strains on 2 types of plates. I have 16 strains of 3 different groups...
02 March 2021 3,584 1 View
In R-studio, there are many commands of Gumbel package. Arguments are also different. I`m asking about the alpha parameter of the Copula which must be greater than 1. If this is the one used to...
25 February 2021 5,229 3 View
I am looking for implementation of bayesian decision trees and bayesian regression trees in Python and/or R.. Do you know if the existing libraries support this
23 February 2021 6,689 3 View
Hi everyone. I am researching droguht effects on soil water drought. I am looking for already implemented functions in R or Python to estimate soil water content from precipitation,...
21 February 2021 2,084 1 View
Hi, I have a simple question. I am hoping to perform a power analysis/sample size estimation for an RCT. We will be controlling for baseline symptoms, and using post-treatment or change scores as...
19 February 2021 2,648 23 View
Dear colleagues, I'm working with Path analyses in lavaan and MVN packages. There are some results that for me are confusing and features from the MVN that I do not know how to set. My dataset is...
18 February 2021 190 3 View
I am trying to simulate contact angle of water on a quartz slab using LAMMPS. I have created and equilibriated the quartz slab and the water cluster separately. Now I want to create a composite...
17 February 2021 5,884 2 View
Dear colleagues, I have an output of FUNGuild tool (ASVs abundance in different samples and assigned to guilds) and would like to merge the ASVs that had similar ecological guilds using R...
16 February 2021 4,292 7 View
Dear everyone, When I using the rda function in r, I met this question. As you can see in the figure, there are a lot of deep blue points which refers to the species. But I would like remain...
15 February 2021 8,982 2 View
I have the following equation, Eating choice (Yes/No)~ Box type (A/B/C). So the question is whether a certain box type affects eating choice in groups of dogs. The eating choice of each member in...
10 February 2021 6,024 9 View