简体   繁体   English

改变R中阿多尼斯的重要数字?

[英]change significant figures in adonis in R?

The adonis function in R apparently defaults to 3 sig-figs in the output p-values. R中的adonis函数显然在输出p值中默认为3 sig-figs。 Can this be altered such that higher sig-figs are output? 可以更改它以便输出更高的信号吗?

I think looking at p-values to more than three significant digits is a very bad idea. 我认为将p值查看为三个以上的有效数字是一个非常糟糕的主意。 However, adonis already gives you this, for number of permutations other than 999: 但是, adonis已经为您提供了此功能,除了999以外的排列数量:

# Code
library(vegan)
data(dune)
data(dune.env)
## default test by terms
adonis(dune ~ Management*A1, data = dune.env, permutations = 1000)

# Results
Permutation test for adonis under reduced model
Terms added sequentially (first to last)
Permutation: free
Number of permutations: 1000

Call:
adonis(formula = dune ~ Management * A1, data = dune.env, permutations = 1000) 

Permutation: free
Number of permutations: 1000

Terms added sequentially (first to last)

              Df SumsOfSqs MeanSqs F.Model      R2   Pr(>F)   
Management     3    1.4686 0.48953  3.2629 0.34161 0.001998 **
A1             1    0.4409 0.44089  2.9387 0.10256 0.016983 * 
Management:A1  3    0.5892 0.19639  1.3090 0.13705 0.228771   
Residuals     12    1.8004 0.15003         0.41878            
Total         19    4.2990                 1.00000 

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

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