You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have a plan of how you want to rework the Terms type?
I have been thinking that many of the kludges like the response member being a Bool with the unstated assumption that it corresponds to the first of the eterms can be bypassed. The response member should be something like Formula.lhs and the terms member should be an array of types like Formula.rhs. If we retain a 1 as a term in terms then the intercept member can be replaced by an expression like 1 in terms. It would then only be necessary to sort the terms according to order and decide how to evaluate them in the ModelFrame where dispatching on the type would be helpful.
These are just a few thoughts. If you have a better scheme in mind then we should go with that.
I've done a bit of work in this direction actually, and I think we're basically on the same page. It's not quite ready for review but the idea is to get rid of Terms completely, and just use a Term tree that gets transformed based on the data schema and then generates model matrix columns or rows by traversing the tree. If you're curious I'm working on this in dfk/modelmatrix2 which is built on top of #4, but it's very rough still.
Activity
nalimilan commentedon Nov 23, 2016
By the way, we should allow for several terms on the LHS, which is needed e.g. for partial least squares regression.
kleinschmidt commentedon Nov 23, 2016
I've done a bit of work in this direction actually, and I think we're basically on the same page. It's not quite ready for review but the idea is to get rid of
Termscompletely, and just use aTermtree that gets transformed based on the data schema and then generates model matrix columns or rows by traversing the tree. If you're curious I'm working on this in dfk/modelmatrix2 which is built on top of #4, but it's very rough still.kleinschmidt commentedon Mar 10, 2019
Closed by #71