case_weights: Case Weights for Unbalanced Binomial or Categorical Responses

View source: R/case_weights.R

case_weightsR Documentation

Case Weights for Unbalanced Binomial or Categorical Responses

Description

Case Weights for Unbalanced Binomial or Categorical Responses

Usage

case_weights(x = NULL)

Arguments

x

(required, integer, character, or factor vector) binomial, categorical, or factor response variable. Default: NULL

Value

numeric vector: case weights

See Also

Other modelling_tools: model_formula(), performance_score_auc(), performance_score_r2(), performance_score_v()

Examples

 case_weights(
   x = c(0, 0, 0, 1, 1)
   )

 case_weights(
   x = c("a", "a", "b", "b", "c")
   )

collinear documentation built on April 12, 2025, 1:36 a.m.