filter_dist: Filter a set of occurrence data based on the multivariate...

Description Usage Arguments Examples

View source: R/search_fun.R

Description

Given a table including localities and climate data,and a value of alpha this function will return the same table with statistical outliers removed according to the alpha-confidence interval of the multivariate likelihoods.

Usage

1
2
filter_dist(ext_ob, dens_ob, clim, min = 0, alpha = 0.01, type = ".kde",
  w = FALSE)

Arguments

ext_ob

A data.frame of climate values (i.e., extracted from the climate raster object). Will be passed to multiv_likelihood().

dens_ob

A density object from vegdistmod::densform(), vegdistmod::and_fun(), or vegdistmod::or_fun();

clim

A raster object of climate data (matching x)

min

The minimum likelihood to be kept. Will override the value of alpha given. Optional.

alpha

The value of alpha you would like to use for confidence interval construction. Default to 0.01 for a 99 percen confidence interval.

type

Designate either ".gauss" or ".kde".

w

To weight log-likelihoods by coefficient of variation or not.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

data(abies);
ext.abies = extraction(abies, climondbioclim, schema='raw');
dens.abies = densform(ext.abies, climondbioclim);
f <- 
 filter_dist(ext.abies, dens.abies, 
 climondbioclim, alpha = 0.01, type = '.kde')

## End(Not run)

rsh249/vegdistmod documentation built on May 28, 2019, 3:31 a.m.