Learn R Programming

collinear (version 1.1.1)

case_weights: Case Weights for Unbalanced Binary Response

Description

Case Weights for Unbalanced Binary Response

Usage

case_weights(x = NULL)

Value

A vector with a length equal to x with case weights.

Arguments

x

(required, integer vector) Binary response with 1s and 0s. Default: NULL

Examples

Run this code
if(interactive()){

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

 }

Run the code above in your browser using DataLab