rdacca.hp: Hierarchical Partitioning for Canonical Analysis

rdacca.hpR Documentation

Hierarchical Partitioning for Canonical Analysis

Description

Hierarchical Partitioning for Canonical Analysis

Usage

rdacca.hp(
  dv,
  iv,
  method = c("RDA", "dbRDA", "CCA"),
  type = c("adjR2", "R2"),
  trace = FALSE
)

Arguments

dv

Response variables. if method="dbRDA", dv is the "dist" matrix.

iv

Explanatory variables, typically of environmental variables.

method

The type of canonical analysis: RDA, dbRDA or CCA, the default is "RDA".

type

The type of total explained variation: "adjR2" is adjusted R-squared and "R2" for unadjusted R-squared, the default is "adjR2".

trace

logical value, if TRUE, the vaules of commonality (2^N-1for N explanatory variables) are outputed,the default is FALSE.

Details

This function calculates the independent contribution of each explanatory variable to explained variation (R-squared) on canonical analysis (RDA,CCA and dbRDA), applying the hierarchy algorithm of Chevan, A. and Sutherland, M. 1991 Hierarchical Partitioning.The American Statistician, 90–96. DOI: 10.1080/00031305.1991.10475776. Under the idea of hierarchy algorithm, the shared R2 can be divided into equal components by number of involved variables, and then allocated equally to these variables as joint effects. The independent contribution of each explanatory variable is the sum of all its allocated common R2 and its unique R2. The order of importance of explanatory variables are determined by their independent contributions.

Value

a list containing

Method_Type

The type of canonical analysis and the type of total explained variation.

R.squared

Total explained variation.

Commonality

If trace=TRUE,a mtrix listing tha value and percentage of all commonality (2^N-1 for N explanatory variables).

Var.part

A matrix listing independent effect and its percentage to total explained variation for each explanatory variable.

Author(s)

Jiangshan Lai lai@ibcas.ac.cn

Pedro Peres-Neto pedro.peres-neto@concordia.ca

Examples

library(vegan)
data(mite)
data(mite.env)
#Hellinger-transform the species dataset for RDA to deal with the "double zero" problem
mite.hel <- decostand(mite, "hellinger")
rdacca.hp(mite.hel,mite.env,method="RDA",type="adjR2")
rdacca.hp(vegdist(mite),mite.env,method="dbRDA",type="adjR2")
rdacca.hp(mite,mite.env,method="CCA",type="adjR2")

laijiangshan/rdacca.hp documentation built on Feb. 22, 2025, 9:43 a.m.