Skip to content

Changing of formulas in v0.25.8 causing trouble with old code #1237

Answered by CamDavidsonPilon
helangen asked this question in Q&A
Discussion options

You must be logged in to vote

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?

  1. Naive: drop the Treatment(0) part of the formula. Inference will still proceed, but it's obvious that you want that, so dropping it seems silly.
  2. Move encoding outside lifelines, and you can us…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@helangen
Comment options

@CamDavidsonPilon
Comment options

Answer selected by helangen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants