1. Introduction
- Polynomial regression supposes a global relationship between and , while step functions avoid such assumption.
- Step functions break the range of into bins, and fit a different constant in each bin.
2. Construction
Assume that we create cutpoints over , and thus obtain new variables:
where is the indicator function.
Then we can fit the model:
where is excluded given that , for the same reason as dummy variable traps.
Note that, for a given , at most one of the can be nonzero. Moreover, if , then , thus is the mean value of for .
3. Notes
- The selection of breakpoints will influence the outcome, and thus might miss some important trends, as the curve between the breakpoints is flat.
- It is popular in biostatistics and epidemiology.