StatsModels.jl icon indicating copy to clipboard operation
StatsModels.jl copied to clipboard

Feature Request: Poly

Open mileslucas opened this issue 6 years ago • 7 comments

Hello, I'm reaching out to request a part of the modelling framework that is similar to R's poly. I think this would be very beneficial within linear modeling as well as other places

This is related to both #29 and #21 but I haven't seen any recent updates regarding this specific feature. Are there people actively working on it? My knowledge of the R poly is not good, so I wouldn't be a great person to tackle the problem, but I'm interested in using it and I'm sure there are many others.

mileslucas avatar Feb 24 '19 00:02 mileslucas

You'll be interested to know that something that (roughly) approximates that is included as a test case for adding features to the formula language in #71: https://github.com/JuliaStats/StatsModels.jl/pull/71/files/39b413a0b7e70660d0aa8ac88c547a0a96bf4216#diff-0eed3b85962bbde3d2a1de890bdac3f8

Once that PR is merged we'll probably include something like poly in this package.

kleinschmidt avatar Feb 24 '19 21:02 kleinschmidt

(Which is to say that a PR to that effect would definitely be welcome once #71 is merged which should be soon, and the documentation/tests from #71 show how to do it which should be enough to get you started on a proper implementation :smile: )

kleinschmidt avatar Feb 24 '19 21:02 kleinschmidt