-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applying transformations on formula arguments #25
Comments
Yes, this is the right place. Some previous discussion happened in JuliaData/DataFrames.jl#19 (one of the oldest issues) and JuliaData/DataFrames.jl#867. |
I'm working on a pretty major overhaul of the model matrix setup that can handle this (among other things); see https://github.com/kleinschmidt/StreamModels.jl for a prototype. |
That package looks awesome! |
Thanks! It's pretty rough at that point so I'd appreciate any bug reports or optimization suggestions if you do try it out. |
Could some of the transformations be extended to take an index or indices? For example, lag / lead / first-difference. |
Just to add on: currently Support for R style literal computation |
This is handled now by #71 |
Awesome! Still too early to close this? |
Yes I think so, let's wait until that (or something like it) is merged. |
Closed by #71 (but feel free to re-open if that doesn't suitably address your needs!) |
Wuuuut! 🎉 :1000: |
Not sure whether this belongs here or on GLM?
A normal use case is to provide exponents (and sometimes log-transforms) directly on model objects. E.g.
However, adding the exponent seems not to be supported. The current workaround appears to be to create a
LifeCycleSavings[:Pop75_2] = LifeCycleSavings[:Pop75] .^2
.There are use cases where this won't be ideal, because the model does not realize that it's the same input argument that has just been squared. Importantly, for
predict
you'd need to also do that transformation on the new DataFrame (newX
). This in particular means that you cannotplot(newX, predict(mymodel, newX))
(for a single input variable), which is a particularly useful functionality IMHO.The text was updated successfully, but these errors were encountered: