Skip to contents

Event rate by segements/levels of a qualitative variable.

Usage

blr_segment(data, response, predictor)

# Default S3 method
blr_segment(data, response, predictor)

Arguments

data

A tibble or data.frame.

response

Response variable; column in data.

predictor

Predictor variable; column in data.

Value

A tibble.

See also

Other bivariate analysis procedures: blr_bivariate_analysis(), blr_segment_dist(), blr_segment_twoway(), blr_woe_iv(), blr_woe_iv_stats()

Examples

blr_segment(hsb2, honcomp, prog)
#> Event By Attributes 
#> -------------------
#> pred           1s%  
#> -------------------
#>  1             0.04 
#>  2             0.20 
#>  3             0.03 
#> -------------------
#>