⇤ ← Revision 1 as of 2024-06-21 18:17:38
Size: 945
Comment: Initial commit
|
Size: 992
Comment: Killing Econometrics page
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from Econometrics/Binning |
Binning
Binning is the process of transforming a continuous variable into either a categorical variable or a set of discrete indicator variables.
Contents
Usage
In Regression Models
There is significant discussion surrounding the use of binning in regression models.
If the intention of binning is to capture non-linearity, then a non-linear model is generally preferable. Another common solution to that problem is to regress on a variable and the square of that variable.
Gelman discusses the approach partly in Regression and Other Stories and in blog posts: "One thing that people don't always realize is that you can do binning and linear together, for example in R, y ~ z + age + age.65.74 + age75.84 + age.85.up" [link and styling mine].