R - Step Function Model

Card Puncher Data Processing

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.







Share this page:
Follow us:
Task Runner