data.reduce: Reduces predictor data based on significance test

Description Usage Arguments Value

View source: R/data.reduce.R

Description

This function reduces the predictor variables of a dataset based on the significance test, resulting from function gdm.varsig.

It can be applied to either predictor ("predData") or site pair ("spData") datasets.

If predictor dataset is a raster object, this function requires the previous instalation of the raster package.

For more details relating to "predData" and "spData" data formats, check gdm package.

Usage

1
data.reduce(data, datatype = "sp", sigtest)

Arguments

data

Data to be reduced based on predictor variable significance. It can be either a predictor dataset ("predData" format) or combined site pair table ("spData" format).

datatype

Type of data to de reduced: pred for predictor data ("predData" format) or sp for site pair data ("spData" format).

sigtest

Predictor variable contribution significance test, as output by gdm.varsig function.

Value

Returns reduced environmental or site pair data.


sparsegdm/sgdm_package documentation built on May 30, 2019, 6:35 a.m.