Changing of formulas in v0.25.8 causing trouble with old code #1237
-
MacOS BigSur v11.2.1 Hi, My current code is: I know a formula is not really neccessary for this problem, but I have further regressions with groups and I need to specify. which group to compare against. My problem now is how I get this to work with the new Formulaic language. I can't find any examples in the documentation, and trying to read the documentation for Formulaic got me even more confused (https://cran.r-project.org/web/packages/formulaic/vignettes/Introduction-to-formulaic.html). I can always downgrade to a previous version, but I wanted to get it working again with the new version. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @helangen! First off, apologies that this change broke your code. I wanted the transition to a new parsing library to be smooth for the end user - but here we are. Let's see what we can do. The parsing library I'm using is Python's formulaic - not R's. Formulaic implements the same language as Patsy (the previous parser). However it's not as feature complete as Patsy. For example, it only offers partial (see note 6) support for custom contrast matrices (as you are doing here). So what can we do?
Each option has a tradeoff, but I think 3. is the least headache. Is there something in the previous two versions that you really want? I can help bridge that gap. |
Beta Was this translation helpful? Give feedback.
Hi @helangen! First off, apologies that this change broke your code. I wanted the transition to a new parsing library to be smooth for the end user - but here we are. Let's see what we can do.
The parsing library I'm using is Python's formulaic - not R's. Formulaic implements the same language as Patsy (the previous parser). However it's not as feature complete as Patsy. For example, it only offers partial (see note 6) support for custom contrast matrices (as you are doing here).
So what can we do?
Treatment(0)
part of the formula. Inference will still proceed, but it's obvious that you want that, so dropping it seems silly.