get_common_predictions: Find at risk ID's

Description Usage Arguments Details Value Author(s) Examples

Description

Makes predictions using a list of models and returns a vector where each value represents the ratio of models which agree on a specified classification for that observation.

Usage

1
get_common_predictions(models, test_x, threshold, id_col = NULL)

Arguments

models

A list of models of class 'train'

test_x

'data.frame' or 'tibble'. explanitory variables from the test set

threshold

a numeric value between 0 and 1. What ratio of columns do you need to agree your target factor?

id_col

string of ID column. If there are no IDs, row numbers will be assigned before filtering out uncertain rows.

Details

When ID's arent present in the data, example ID's are generated.

Value

tibble

Author(s)

"Chad Schaeffer <sch12059@byui.edu>",

Examples

1
2
3
4
5
6
7
8
## Not run: 

get_common_predictions(models    = models_list,
                       test_x    = test_x,
                       threshold = 0.70)


## End(Not run)

BYUIDSS/HSPSModelR documentation built on May 10, 2019, 1:20 p.m.