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

View source: R/Misc.R

first_class_prob_nameR Documentation

Returns the name of predictions column for the first level variable

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

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 May 29, 2024, 2:22 a.m.