R - Step Function Model

> Procedural Languages > R

1 - Cut

cut will create an ordered factor factor, that cuts the variable into bins.

cut(age; c(18; 25; 40; 65; 90)).

where:

  • 19 and 90 are the two boundary points
  • 25, 40 and 65 are the interior cut points.
lang/r/step_function.txt · Last modified: 2017/02/12 21:02 by gerardnico