Description Usage Arguments Details Value See Also Examples
Function calculating the weightet linear regressions between CWM of species attributes (traits) and sample attributes (environmental variables) and between SNC of sample attributes and species attributes (sensu ter Braak et al. 2018), and testing them by parametric tests and their combination into max test.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | test_wreg(
env,
com = NULL,
traits = NULL,
test = "all",
parallel = NULL,
p.adjust.method = p.adjust.methods,
adjustP = FALSE
)
## S3 method for class 'testWREG'
print(
x,
digits = max(3, getOption("digits") - 3),
missing.summary = FALSE,
eps.Pvalue = 0.001,
signif.stars = getOption("show.signif.stars"),
...
)
## S3 method for class 'testWREG'
coef(object, ...)
rescale_axis(x, var_re, var_st)
## S3 method for class 'testWREG'
plot(
x,
alpha = 0.05,
line = NA,
cex.lab = 1.5,
par.mar = c(0.5, 0.5, 0.5, 0.5),
box.col = c("blue", "red"),
box.lwd = 2,
...
)
|
env |
Vector, matrix or data frame with sample attributes (environemntal variables). |
com |
Matrix of data frame with species composition data. |
traits |
Vector, matrix or data frame with species attributes (traits) |
test |
NEEDS FIX Vector of character values. Which test should be conducted? Partial match to |
parallel |
NULL (default) or integer number. Number of cores for parallel calculation. Maximum number of cores should correspond to number of available cores on the processor. |
p.adjust.method |
A string indicating the method of P-value adjustement, see |
adjustP |
Logical, default FALSE. Should be the P-values adjusted? If |
x, object |
NEEDS FIX object of the class |
digits |
number of digits reported by |
missing.summary |
Logical; should be the summary of values missing in |
eps.Pvalue |
Values of P below this threshold will be printed as |
signif.stars |
Logical; if TRUE, P-values are additionally encoded visually as 'significance stars' in order to help scanning of long coefficient tables. It defaults to the show.signif.stars slot of |
... |
Other arguments for |
var_re, var_st |
Parameters for scaling function |
alpha, line, cex.lab, par.mar, box.col, box.lwd |
Graphical parameters for |
In the current implementation, species with missing species attributes are removed from sample x species matrix prior to permutation of species attributes among species.
Function test_wreg
returns the list of the class "testWREG"
(with print
and summary
methods), which contains the following items: NEEDS TO FIX
call
Function call.
out
Data frame with results of calculation; the first column contains the original fourth corner metric (r_fc
); following columns contain some of the following results of parametric tests: P.row
, P.col
and P.max
. If adjustP = TRUE
, the last column contains P values adjusted by p.adjust
function.
miss
List with missing values of env
, traits
or cwm
(the last provided for compatibility with test_cwm
function and refers to samples which, after removing missing traits
values, do not contain any species.)
param
Setting of input parameters (perm
and test
).
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.