My_spearman: Performs Spearman rank correlations or Kruskal-Wallis Rank...

View source: R/My_spearman_function.R

My_spearmanR Documentation

Performs Spearman rank correlations or Kruskal-Wallis Rank Sum Test on the First CA Axis.

Description

This function performs Spearman rank correlations between the first axis of a CA computed on a incidencematrix and multiple gradient variables. . If the gradient variable is a factor, it performs Kruskal-Wallis Rank Sum Tests. P values are corrected for multiple comparisons.

Usage

My_spearman(Y, X, p.adjust.method = "fdr")

Arguments

Y

An incidence matrix.

X

A matrix of gradient variables from, either continuous gradients or a factor.

p.adjust.method

Method of p-value correction. Same as for the "p.adjust" function.


RodolfoPelinson/AtlanticForestMetacommunity documentation built on Aug. 5, 2023, 3:53 p.m.