table_model_test: Model testing performance table.

Description Usage Arguments Details Value Note Author(s) See Also

View source: R/table_model_test.R

Description

table_model_test() reproduces the model testing performance table in section x.xx of Benjamin Gordon's PhD thesis.

Usage

1
2
table_model_test(table.name = "model_testing_table",
  save.table = FALSE)

Arguments

table.name

Name of table.

save.table

Logical indicating if the plot should be saved to ./tables/.

Details

table_model_test() loads the saved models in ./inst/extdata/; reproduces then predicts the test data; calculates the confusion matrices and statistics for the test data; creates a table containing the accuracy and the class specific sensitivity and specificity for each model; saves the table to ./tables/ as a .csv file with a .txt file extension.

Value

returns a tibble with class tbl_df.

Note

The .txt file extension makes it easy to open the file in a text editor and copy/paste the contents to Word, where the text can be easily converted to a table. Although this function is exported, table_model_test() was not intended to be used outside of this package.

Author(s)

Benjamin R. Gordon

See Also

confusionMatrix tibble


brgordon17/coralclass documentation built on June 15, 2020, 9:21 p.m.