Formulaic is the go-to way to specify design formulas in Python, e.g. ~treatment + timepoint.

To compare sth, one needs to specify a contrast, e.g "on treatment vs baseline".

To make this easier, we developed "formulaic-contrasts":
https://formulaic-contrasts.readthedocs.io/en/latest/
Post image

Comments