Skip to main content
8 events
when toggle format what by license comment
Sep 21, 2017 at 14:53 vote accept Tim
Sep 21, 2017 at 14:50 answer added Tim timeline score: 1
Sep 19, 2017 at 21:49 comment added Tim @DavidErnst that's not the only reason, because of non-statistical reasons I need to focus on simple, preferably linear-regression, model. Obviously there are better approaches for such data, but I'm simply asking what could go wrong if I used linear regression like this. The example I provided is made-up, but reflects important aspects of the problem.
Sep 19, 2017 at 18:18 comment added David Ernst @whuber Why not just use splines then if the goal is to better fit the nonlinear aspects of the data? (Assuming the usual square terms etc. don't achieve that either). I'm not saying the proposed model is always a bad idea, just that the proposed reason of "I assume the relationship is not perfectly linear" is a bad one. Tax brackets would be a more tangible reason for this model, perhaps there are others.
Sep 19, 2017 at 17:03 comment added whuber @David It might be complicated, but it can work. One way to see this is to recognize that standard dummy-variable codings of the groups amount to an order-zero spline. If instead we were a bit more sophisticated and used a higher-order spline, we would recognize this proposal as a perfectly standard procedure (and readily interpretable). The interaction would look like an additional spline-like term contributing to the final nonlinear fit. Although unorthodox, there doesn't seem to anything to prohibit this approach outright.
Sep 19, 2017 at 14:55 comment added Richard Hardy So there is not only $\text{salary}$ and $\text{salary_group}$ but also the interaction? That is even more complicated than your title suggests.
Sep 19, 2017 at 13:54 comment added David Ernst If nothing else it will lead to problems of interpretability. Unless you have a strong reason to look at income from both perspectives (categories and the actual number), don't do it. Such a reason could be tax brackets that constitute a finite set of containers that salary falls in and that are treated differently.
Sep 19, 2017 at 13:47 history asked Tim CC BY-SA 3.0