Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Incorporated Piotr Migdal's comment into the answer.
Source Link
ChristopherTull

You can pass a reference arg to the Treatment contrast., using syntax like

"y ~ C(Location, Treatment(reference='China'))"

http://patsy.readthedocs.org/en/latest/API-reference.html#patsy.Treatment

If you have a better suggestion for naming conventions please file an issue with patsy.

You can pass a reference arg to the Treatment contrast.

http://patsy.readthedocs.org/en/latest/API-reference.html#patsy.Treatment

If you have a better suggestion for naming conventions please file an issue with patsy.

You can pass a reference arg to the Treatment contrast, using syntax like

"y ~ C(Location, Treatment(reference='China'))"

http://patsy.readthedocs.org/en/latest/API-reference.html#patsy.Treatment

If you have a better suggestion for naming conventions please file an issue with patsy.

Source Link
jseabold

You can pass a reference arg to the Treatment contrast.

http://patsy.readthedocs.org/en/latest/API-reference.html#patsy.Treatment

If you have a better suggestion for naming conventions please file an issue with patsy.

lang-py