rbin_create {rbin}R Documentation

Create dummy variables

Description

Create dummy variables from bins.

Usage

rbin_create(data, predictor, bins)

Arguments

data

A data.frame or tibble.

predictor

Variable for which dummy variables must be created.

bins

An object of class rbin_manual or rbin_quantiles or rbin_equal_length or rbin_winsorized.

Value

data with dummy variables.

Examples

k <- rbin_manual(mbank, y, age, c(29, 39, 56))
rbin_create(mbank, age, k)


[Package rbin version 0.2.0 Index]