User Tools

Site Tools


en:customized_functions:p.adjust.envfit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:customized_functions:p.adjust.envfit [2017/10/11 20:36]
127.0.0.1 external edit
en:customized_functions:p.adjust.envfit [2018/04/22 00:26]
David Zelený
Line 4: Line 4:
 Function used to adjust the p-values in results of ''​envfit''​ function (from ''​vegan''​) for the multiple test problem (by default using Bonferroni'​s correction). Function used to adjust the p-values in results of ''​envfit''​ function (from ''​vegan''​) for the multiple test problem (by default using Bonferroni'​s correction).
  
 +The definition of the function can be sourced from here:
 +<code rsplus>
 +source ('​https://​raw.githubusercontent.com/​zdealveindy/​anadat-r/​master/​scripts/​p.adjust.envfit.r'​)
 + 
 +</​code>​
 +
 +and the script is here:
 <file r p.adjust.envfit.r>​ <file r p.adjust.envfit.r>​
-p.adjust.envfit ​<- function (x, method = '​bonferroni',​ n)+# Function ​p.adjust.envfit
 # Calculates adjusted P values for results stored in envfit object, # Calculates adjusted P values for results stored in envfit object,
 # created using envfit function from vegan, which fits supplementary variables # created using envfit function from vegan, which fits supplementary variables
Line 16: Line 23:
 #          taken as the number of tests conducted by envfit function (for both vectors and factors). #          taken as the number of tests conducted by envfit function (for both vectors and factors).
 # Author: David Zeleny # Author: David Zeleny
 +p.adjust.envfit <- function (x, method = '​bonferroni',​ n)
 { {
   x.new <- x   x.new <- x
en/customized_functions/p.adjust.envfit.txt · Last modified: 2018/04/22 00:26 by David Zelený