rbin_create {rbin} | R Documentation |
Create dummy variables
Description
Create dummy variables from bins.
Usage
rbin_create(data, predictor, bins)
Arguments
data |
A |
predictor |
Variable for which dummy variables must be created. |
bins |
An object of class |
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]