Skip to content
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

Operations for Terms #240

Open
jtrakk opened this issue Sep 20, 2021 · 3 comments
Open

Operations for Terms #240

jtrakk opened this issue Sep 20, 2021 · 3 comments

Comments

@jtrakk
Copy link

jtrakk commented Sep 20, 2021

Term(:a) * Term(:b) and most of the @formula operators are currently not supported. It would be useful to have those for constructing formulas programmatically.

@kleinschmidt
Copy link
Member

Which of the other operators are not supported? ~, +, and & should all more or less work at run time. If they don't then that's a bug but there are tests for them.

* is a bit of a special case; it's currently handled at parse time and no run-time methods are defined for it. That might change in a future version though, but that syntax has been...controversial...so it migth be handled via the normal FunctionTerm overloading for regression models, perhaps in a package like https://github.com/kleinschmidt/RegressionFormulae.jl (which is very much WIP)

@kleinschmidt
Copy link
Member

Also #183 moves a lot more of the logic that current happens at parse time to run-time so that may be worth checking out.

@jtrakk
Copy link
Author

jtrakk commented Oct 15, 2021

Which of the other operators are not supported? ~, +, and & should all more or less work at run time. If they don't then that's a bug but there are tests for them.

You're right, I'm not sure why I said that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants