2024年5月24日发(作者:夷立辉)
Package‘’
May23,2023
TypePackage
TitleHierarchicalandVariationPartitioningforCanonicalAnalysis
Version1.1-0
Date2023-5-23
DependsR(>=3.4.0),vegan,ggplot2
AuthorJiangshanLai,YaoLiu,PedroPeres-Neto,KimNimon
MaintainerJiangshanLai<************.cn>
DescriptionThisfunctionconductsvariationpartitioningandhierarchicalpartitioningtocalcu-
latetheunique,shared(referredasto``common'')andindividualcontributionsofeachpredic-
tor(ormatrix)towardsexplainedvariation(R-squareandadjustedR-square)oncanonicalanaly-
sis(RDA,CCAanddb-RDA),applyingthealgorithmofLaiJ.,ZouY.,ZhangJ.,Peres-
NetoP.(2022)Generalizinghierarchicalandvariationpartitioninginmultipleregres-
sinEcologyandEvolu-
tion,13:782-788
LicenseGPL
URL/laijiangshan/
EncodingUTF-8
RoxygenNote7.1.1
NeedsCompilationno
RepositoryCRAN
Date/Publication2023-05-2309:10:02UTC
Rtopicsdocumented:
..........................................
hp........................................
..........................................
Index
1
2
3
4
8
utationTestofHierarchicalPartitioningforCanonicalAnalysis
Description
PermutationTestofHierarchicalPartitioningforCanonicalAnalysis
Usage
(
dv,
iv,
method=c("RDA","dbRDA","CCA"),
type=c("adjR2","R2"),
scale=FALSE,
add=FALSE,
=FALSE,
=1000,
permutations=1000
)
Arguments
dv
iv
Responsevariable,od="dbRDA",dv
shouldbea"dist"matrix.
Predictors(explanatoryvariable),
itisadataframe,therelativeimportanceofeachcolumnofthedataframewill
beevaluated;ifitisalist,therelativeimportanceofeachelement(matrix)will
beevaluated.
Typeofcanonicalanalysisusedforvariationpartitioning,shouldbeacharacter
string,either"RDA","dbRDA"or"CCA",thedefaultis"RDA".Iftheresponse
variable(dv)isanumericalvectorandmethod="RDA",thehierarchicaland
variationpartitioningfortheclassicalmultipleregressionisimplemented.
Thetypeoftotalexplainedvariation,either"R2"or"adjR2",inwhich"R2"is
unadjustedR-squareand"adjR2"isadjustedR-square,thedefaultis"adjR2".
TheadjustedR-squareiscalculatedusingEzekiel’sformula(Ezekiel1930)for
RDAanddbRDA,whilepermutationprocedureisusedforCCA(Peres-Netoet
al.2006).
Logical;Ifthecolumnsofdvshouldbestandardizedtounitvariancewhen
method="RDA"isapplied.
Logical;Ifaconstantshouldbeaddedtothenon-diagonalvaluestoeuclidify
dissimilarities(seedbrdafunctioninveganfordetails).Choice"lingoes"(or
TRUE)usestherecommendedmethodofLegendre&Anderson(1999:"method
1")and"cailliez"usestheir"method2".Theargumenthasaneffectonlywhen
method="dbRDA".
method
type
scale
add
2024年5月24日发(作者:夷立辉)
Package‘’
May23,2023
TypePackage
TitleHierarchicalandVariationPartitioningforCanonicalAnalysis
Version1.1-0
Date2023-5-23
DependsR(>=3.4.0),vegan,ggplot2
AuthorJiangshanLai,YaoLiu,PedroPeres-Neto,KimNimon
MaintainerJiangshanLai<************.cn>
DescriptionThisfunctionconductsvariationpartitioningandhierarchicalpartitioningtocalcu-
latetheunique,shared(referredasto``common'')andindividualcontributionsofeachpredic-
tor(ormatrix)towardsexplainedvariation(R-squareandadjustedR-square)oncanonicalanaly-
sis(RDA,CCAanddb-RDA),applyingthealgorithmofLaiJ.,ZouY.,ZhangJ.,Peres-
NetoP.(2022)Generalizinghierarchicalandvariationpartitioninginmultipleregres-
sinEcologyandEvolu-
tion,13:782-788
LicenseGPL
URL/laijiangshan/
EncodingUTF-8
RoxygenNote7.1.1
NeedsCompilationno
RepositoryCRAN
Date/Publication2023-05-2309:10:02UTC
Rtopicsdocumented:
..........................................
hp........................................
..........................................
Index
1
2
3
4
8
utationTestofHierarchicalPartitioningforCanonicalAnalysis
Description
PermutationTestofHierarchicalPartitioningforCanonicalAnalysis
Usage
(
dv,
iv,
method=c("RDA","dbRDA","CCA"),
type=c("adjR2","R2"),
scale=FALSE,
add=FALSE,
=FALSE,
=1000,
permutations=1000
)
Arguments
dv
iv
Responsevariable,od="dbRDA",dv
shouldbea"dist"matrix.
Predictors(explanatoryvariable),
itisadataframe,therelativeimportanceofeachcolumnofthedataframewill
beevaluated;ifitisalist,therelativeimportanceofeachelement(matrix)will
beevaluated.
Typeofcanonicalanalysisusedforvariationpartitioning,shouldbeacharacter
string,either"RDA","dbRDA"or"CCA",thedefaultis"RDA".Iftheresponse
variable(dv)isanumericalvectorandmethod="RDA",thehierarchicaland
variationpartitioningfortheclassicalmultipleregressionisimplemented.
Thetypeoftotalexplainedvariation,either"R2"or"adjR2",inwhich"R2"is
unadjustedR-squareand"adjR2"isadjustedR-square,thedefaultis"adjR2".
TheadjustedR-squareiscalculatedusingEzekiel’sformula(Ezekiel1930)for
RDAanddbRDA,whilepermutationprocedureisusedforCCA(Peres-Netoet
al.2006).
Logical;Ifthecolumnsofdvshouldbestandardizedtounitvariancewhen
method="RDA"isapplied.
Logical;Ifaconstantshouldbeaddedtothenon-diagonalvaluestoeuclidify
dissimilarities(seedbrdafunctioninveganfordetails).Choice"lingoes"(or
TRUE)usestherecommendedmethodofLegendre&Anderson(1999:"method
1")and"cailliez"usestheir"method2".Theargumenthasaneffectonlywhen
method="dbRDA".
method
type
scale
add