first_level {shinymodels}R 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.


[Package shinymodels version 0.1.1 Index]