testModel: Test predictive models

Description Usage Arguments Value

View source: R/modelUtils.R

Description

This function fits a model and displays information about this model

Usage

1
testModel(formula, trainset, testset, outcome, method, ...)

Arguments

formula

The formula used to train the model. If NULL, will use the non-formula train method of caret

trainset

The dataset to train the data with

testset

The dataset with test data

outcome

The outcome column name

method

The training algorithm to use (eg. glm, rpart, rf, gbm...)

...

additional parameters as specified by caret train function

Value

a list


geraudster/modelUtils documentation built on May 17, 2019, 2:10 a.m.