slopediff: Compare Slopes of Mantel Regression Within and Across Blocks

slopediffR Documentation

Compare Slopes of Mantel Regression Within and Across Blocks

Description

Functions fit linear regression on distances within blocks and across blocks and compere their slopes using permutation tests.

Usage

slopediff(ydist, xdist, block, nperm = 999)

slopediff2(ydist, xdist, block, nperm = 999)

## S3 method for class 'slopediff'
plot(x, col = 1, obsline = TRUE, ...)

## S3 method for class 'slopediff'
summary(object, ...)

Arguments

ydist, xdist

Dependent and indpendent dissimilarities.

block

Blocking of sites.

nperm

Number of simple permutations.

x

Result output from slopediff or slopediff2.

col

Plotting colour.

obsline

Draw line on observed statistic in the density plot.

...

Other parameters passed to plot.

object

Result object from slopediff or slopediff2.

Details

Functions are intended to analyse the differences of linear Mantel regression within and across blocks. Typically the dependent dissimilarities (ydist) are based on community data, independent dissimilarities (xdist) are based on environmental data, and block defines subsets of data, such as geographical subareas.

Functions slopediff and slopediff2 differ in their permutation models. Function slopediff permutes the classification vector defining blocks, and keeps the dependent (ydist) and independent (xdist) pairs of dissimilarities fixed. Function slopediff2 permutes dependent data, and keeps blocks and dependent distances fixed.

Author(s)

Jari Oksanen


jarioksa/natto documentation built on March 28, 2024, 12:45 a.m.