first_level: Returns the first level of a classification model

View source: R/Misc.R

first_levelR Documentation

Returns the first level of a classification model

Description

This function takes data, event_level and y_name, as arguments and returns the first level in a classification data.

Usage

first_level(dat, event_level = c("first", "second"), 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 string.


shinymodels documentation built on May 29, 2024, 2:22 a.m.