Learn R Programming

collinear (version 2.0.0)

case_weights: Case Weights for Unbalanced Binomial or Categorical Responses

Description

Case Weights for Unbalanced Binomial or Categorical Responses

Usage

case_weights(x = NULL)

Value

numeric vector: case weights

Arguments

x

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

See Also

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

Examples

Run this code
 case_weights(
   x = c(0, 0, 0, 1, 1)
   )

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

Run the code above in your browser using DataLab