Learn R Programming

lulcc (version 1.0.4)

Model fitting: Fit predictive models

Description

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

Usage

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

Run this code
# NOT RUN {
## see lulcc-package examples
# }

Run the code above in your browser using DataLab