-
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
An explictly overloaded FunctionalTerm used in the arguments to julia function used in a formula is always treated as a julia function. #114
Comments
Ok, Basically we need to move some of the stuff that is done One way to do that would be for the default Another option that is closely related and might be part of the above is to have two kinds of
I think this will do it, but one thing I am cacuous about is making sure things like: Here are my testcases:
|
I thought as a hack the followomg would work but it appears not to.
|
Ok it could be just |
I want to add that this choice was intentional, so it's not quite right to say |
Basically:
f = @formula(y ~ (x - poly(x, 2)))
callspoly
on the vector of numerical valuesx
,rather than using the appropriate
modelcols(::PolyTerm, data)
to workout what to do.
MVE
on current master
The code at the start is just like in
https://juliastats.github.io/StatsModels.jl/latest/internals/
except that the function behind
poly
is defined to throw an error,as we want to make sure it is not used.
Turns out is is, and as such an error is thrown
outputs
The text was updated successfully, but these errors were encountered: