format_data: Format data for modeling

Description Usage Arguments Value Examples

View source: R/format_data.R

Description

Prepares data for modeling. Gives list with training and evaluation data needed for the model.

Usage

1
2
3
format_data(explanatory_variables, response_variable, evaluation_data,
  explanatory_variables_eval, VIF_select = FALSE, cross_validate = FALSE,
  threshold = 10)

Arguments

explanatory_variables

Raster data, output from get_rasters().

response_variable

Data for fitting, output from load_PA().

evaluation_data

Data for evaluation, output from load_PA(). Necessary if cross_validate = FALSE.

explanatory_variables_eval

Raster stack of explanatory variables used for hind casting. Necessary only if cross_validate = FALSE.

VIF_select

Do VIF selection of predictiors (only works now for cross_validate = TRUE). Not necessary, since VIF selection is now done a priori.

cross_validate

Assess models on cross validated or hind casted dataset. Default is FALSE.

threshold

Thershold for VIF calculation. Not needed anymore (see VIF_select arg).

Value

List of 2. Training data and evaluation data.

Examples

1
None.

MirzaCengic/LUpak documentation built on July 18, 2019, 3:06 a.m.