简体   繁体   English

多种比较的选择纯素阿多尼斯

[英]Options for multiple comparisions Vegan Adonis

I am using the adonis function in the vegan package to determine differences in dissimilarities in a community (PCB congeners) between several different factors. 我正在使用vegan软件包中的adonis函数来确定社区(PCB同源物)中不同因素之间差异的差异。 I also have decided to use the simper subroutine to assess which community members contributed most to the observed differences. 我还决定使用simper子例程来评估哪些社区成员对观察到的差异贡献最大。 Is there a way for to include multiple factors in the simper function. 有没有一种方法可以在simper函数中包含多个因素。 I ran this adonis model (see below) and this is my code for the simper routine (which currently doesn't work). 我运行了此adonis模型(请参见下文),这是我的simper例程的代码(当前不起作用)。 Many thanks. 非常感谢。

#Adonis model
pcbtest3<-adonis(pcbcong~FISH_CLASS+REACH+BASIN,data=pcbcov,method="bray",permutations=999)
pcbcong=matrix of community dissimilarities
FISH_CLASS,REACH, BASIN are factors
#Simper
simp<-with(pcbcov, simper(pcbcong,(FISH_CLASS, BASIN, REACH)))

simper can be used only with one grouping variable. simper只能与一个分组变量一起使用。

A workaround would be to use interaction() to create a new grouping variable from all three factors. 一种解决方法是使用interaction()从所有三个因素创建一个新的分组变量。

Interpretation of this will be awkward (depending how many factor levels you have) and I don't know if that`s meaningful at all - so be careful. 对此的解释会很尴尬(取决于您拥有多少个因子水平),我也不知道这是否有意义-因此请小心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM