niche_parameters: NICHE PARAMETERS

View source: R/niche_parameters.R

niche_parametersR Documentation

NICHE PARAMETERS

Description

Estimates niche parameters

Usage

niche_parameters(
  x,
  y,
  type = c("region", "global"),
  centroid.w = F,
  rnd.test = F,
  quantile = 0.75,
  np.type = "unimodal",
  np.metric = c("median", "mean", "max"),
  cor = F,
  rep = 100,
  rand = 1,
  alternative = c("greater", "lower")
)

Arguments

x

NINA model

y

Optional. NINA model

type

String indicating the scale of the analysis. Default is "region"

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

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

Details

Returns an error if filename does not exist.

Value

Data frame.


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