niche_comparison: NICHE COMPARISON

View source: R/niche_comparison.R

niche_comparisonR Documentation

NICHE COMPARISON

Description

Computes different metrics to analyze differences between two niches

Usage

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")
)

Arguments

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 centroid.w is TRUE, quantle threshold to filter niche densities. Default is 0.5. See niche_position

np.type

If centroid.w is TRUE, type of centroid to estimate. Default is 'unimodal'. See niche_position

np.metric

If centroid.w is TRUE, statistic method to estimate the niche centroid. Default is 'median'. See niche_position

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".

Value

An S3 object class NINA containing different niche anallyses.


agarciaEE/NINA documentation built on Jan. 9, 2025, 10:09 a.m.