The model.comp helps compare performance measures of models fitted to given data. To get started, load the package as such:

library(model.comp)

Then call the compare_models() function, specifying your input data, the models you want to fit, given as a list or vector, the outputs you would like to compare, also given as a list or vector, and your eqn - the format of the models you would like to fit.

Currently, the models supported are:

The supported outputs are:

An example is given below for the logreg model, using the gapminder dataset as test data:

logreg_output <- compare_models(data = gapminder::gapminder, eqn = "lifeExp ~ gdpPercap", models = c('logreg'))


hantonita/model.comp documentation built on Jan. 1, 2021, 3:15 a.m.