niche.test: Monte-Carlo Test on Parameters of the Ecological Niche

Description Usage Arguments Details Value Warning Author(s) See Also Examples

Description

niche.test tests for the significance of two parameters of the ecological niche of a species (marginality and tolerance), using Monte-Carlo methods. This is a bivariate test.

Usage

1
niche.test(x, pts, nrep = 999, o.include = TRUE, ...)

Arguments

x

a raster map of class SpatialPixelsDataFrame

pts

an object inheriting the class SpatialPoints

nrep

the number of permutations

o.include

logical, passed to biv.test. If TRUE, the origin is included in the plot

...

further arguments passed to biv.test

Details

niche.test tests the significance of two parameters describing the ecological niche: the marginality (squared length of the vector linking the average available habitat conditions to the average used habitat conditions in the ecological space defined by the habitat variables), and the tolerance (inertia of the niche in the ecological space, i.e. the sum over all variables of the variance of used pixels).

At each step of the randomisation procedure, the test randomly allocates the n points in the pixels of the map. The marginality and the tolerance are then recomputed on this randomised data set.

Actual values are compared to random values with the help of the function biv.test.

Value

Returns a list containing the following components:

dfxy

a data frame with the randomized values of marginality (first column) and tolerance (second column).

obs

the actual value of marginality and tolerance.

Warning

biv.test uses the function kde2d of the package MASS.

Author(s)

Mathieu Basille basille@ase-research.org
Clement Calenge clement.calenge@ofb.gouv.fr

See Also

biv.test for more details on bivariate tests. histniche for the histograms of the variables of the niche.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(chamois)

niche <- niche.test(chamois$map,
                    chamois$locs,
                    side = "bottom")
names(niche)

## End(Not run)

Example output

Loading required package: sp
Loading required package: ade4
Loading required package: adehabitatMA
Loading required package: adehabitatHR
Loading required package: deldir
deldir 0.1-14
Loading required package: adehabitatLT
Loading required package: CircStats
Loading required package: MASS
Loading required package: boot
[1] "dfxy" "obs" 

adehabitatHS documentation built on Jan. 17, 2020, 9:06 a.m.