Partial Mantel test

The main idea...

A partial Mantel test, like the Mantel test, may be used to calculate correlations between corresponding positions of (dis)similarity or distance matrices. However, analogous to partial correlation, the partial Mantel test attempts to correct for the influence of another set of variables stored in an additional matrix or matrices. 

Increasing power

The power of a partial Mantel test increases with a larger number of objects and fewer matrices.