I have some data for the relatedness of different individuals, the distance between them and whether they belong to the same group.
I want to know: is there a significant effect of group identity on the effect of distance on relatedness. In other words, are group members more closely related than you would expect given their distance?
I found that it is possible to test whether there is a correlation between distance and relatedness using a mantel test, but haven't found anything similar that also allows inclusion of additional factors. Does anyone know if something like this exists?