weight: Calculate weights for class imbalance

View source: R/nest_filter_balance.R

weightR Documentation

Calculate weights for class imbalance

Description

Calculate weights for class imbalance

Usage

weight(y)

Arguments

y

Factor or character response vector. If a character vector is supplied it is coerced into a factor. Unused levels are dropped.

Value

Vector of weights


nestedcv documentation built on Sept. 11, 2024, 5:22 p.m.