View source: R/niche_comparison.R
niche_comparison | R Documentation |
Computes different metrics to analyze differences between two niches
niche_comparison(
x,
y,
centroid.w = F,
rnd.test = F,
Z_space = F,
quantile = 0.75,
np.type = c("unimodal", "multimodal"),
np.metric = c("median", "mean", "max"),
cor = F,
rep = 100,
rand = 1,
alternative = c("greater", "lower")
)
x |
NINA niche object |
y |
NINA niche object |
centroid.w |
logical whether to weight niche overlap by distance to niche centroid |
rnd.test |
Logical to indicate if randomization tests are to be estimated |
Z_space |
lLogical. Whether to compute USE parameters accounting for the environmental space (Z) |
quantile |
If |
np.type |
If |
np.metric |
If |
cor |
Logical whether to use environmentally corrected densites |
rep |
Number of random samples to carry out the statistic tests |
rand |
Directions of the comparisons. 1 performs all tests with argument 'x' as base of all comparisons. 2 uses argument 'y'. Default is 1. |
alternative |
String indicating the alternative hypothesis. Default is "greater". |
An S3 object class NINA containing different niche anallyses.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.