model_cat: Modeling function for Ensemble of Categorical Analysis

Description Usage Arguments Value Examples

View source: R/model_cat.R

Description

Creates a 'sumcat' class object that when summary is called the models for each type: Random Forest, Logistic Regression, LDA, SVM.

Usage

1
model_cat(formula, data, test_data = NULL)

Arguments

formula

A formula statement

data

A categorical data set specified by the user

test_data

If user has already made a test data-set they may input it to allow the plot function to work, otherwise a test and training set will be created.

Value

A list object that contains the ensemble of models

Examples

1
2
3
#Create a sumcat object
sumcat <- model_cat(Potability ~ ., water_potability, water_test)
sumcat

samhaycock/sumcat documentation built on Dec. 22, 2021, 10:11 p.m.