Fit predictive models

Share:

Description

These functions fit parametric and non-parametric models to data.

Usage

1
2
3
4
5
6
glmModels(formula, family = binomial, model = FALSE, ..., obs,
  categories = NA, labels = NA)

randomForestModels(formula, ..., obs, categories = NA, labels = NA)

rpartModels(formula, ..., obs, categories = NA, labels = NA)

Arguments

formula

list containing formula objects

family

see glm. Default is 'binomial'. Only used by glmModels

model

see glm. Default is FALSE. Only used by glmModels

...

additional arguments to specific functions

obs

an ObsLulcRasterStack object

categories

numeric vector of land use categories in observed maps. Only required if 'obs' is missing

labels

character vector (optional) with labels corresponding to categories. Only required if 'obs' is missing

Value

A PredictiveModelList object.

See Also

glm, rpart::rpart, randomForest::randomForest

Examples

1
## see lulcc-package examples

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.