first_class_prob_name: Returns the name of predictions column for the first level...

Description Usage Arguments Value

View source: R/Misc.R

Description

This function takes prediction data, the event level, and the outcome name as arguments and returns the predictions column for the first level variable.

Usage

1
first_class_prob_name(dat, event_level, y_name)

Arguments

dat

The predictions data frame in the organize_data() result. Following variables are required: .outcome, .pred, .color, and .hover.

event_level

A single character value for the level corresponding to the event.

y_name

The y/response variable for the model.

Value

A symbol.


shinymodels documentation built on Nov. 18, 2021, 1:12 a.m.