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
Reinvent the predict wheel #26
Comments
This looks really good. I think the framework I'm currently developing (on the" numDeriv" branch) will accommodate this. Basically, we can take a modelling object, drop all of the irrelevant stuff except what is needed by The current "master" branch implementation requires the formula (because of using symbolic derivatives), but the new approach (using numerical derivatives) only needs to be able to run Thanks for pointing me to that thread! |
Have you also seen this package? https://github.com/hadley/modelr It would also be good to think about implementing with that philosophy in mind. |
In code currently on |
As far as I can tell, the terms object in predict is only used for getting the original x-values, which aren't always wanted. Worse, a terms object will carry around it's entire environment when generated not in .GlobalEnv, which can be terrible for memory when working with big data and/or generating many models. See here https://stat.ethz.ch/pipermail/r-devel/2016-July/072924.html
My wish is that predict methods would allow me to manually pass newdata and only use the terms object when required, so that I can delete this from the original object and not run into these problems of carrying around all this data unnecessarily.
And, your package seems like a great place to fit this in for a variety of model objects.
The text was updated successfully, but these errors were encountered: