Event rate by segements/levels of a qualitative variable.

blr_segment(data, response, predictor)

# S3 method for default
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_stats, blr_woe_iv

Examples

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