Learn R Programming

PopGenReport (version 2.0)

wassermann: Partial Mantel tests on costdistance matrices

Description

This function implements the Causal modelling approach as suggested by Wassermann et al. 2010 and Cushman et al. 2010. It tests for the effect of landscape features using a cost distance matrix on the genetic structure of subpopulation/individuals.

Usage

wassermann(gen.mat, cost.mats, eucl.mat=NULL, plot = TRUE, nperm=999)

Arguments

Value

A table with the results of the partial mantel test. Using plot=TRUE results in diagnostic plots for the partial mantel tests.

Details

see landgenreport

References

Wassermann, T.N., Cushman, S. A., Schwartz, M. K. and Wallin, D. O. (2010). Spatial scaling and multi-model inference in landscape genetics: Martes americana in northern Idaho. Landscape Ecology, 25(10), 1601-1612.

See Also

popgenreport, genleastcost, landgenreport, lgrMMRR

Examples

Run this code
glc <- genleastcost(landgen, fric.raster, "D")
wassermann(eucl.mat = glc$eucl.mat, cost.mats = glc$cost.mats, gen.mat = glc$gen.mat)

Run the code above in your browser using DataLab