Series format for EffectEstimate #381
-
|
I've been trying to extend the CTF by processing the output of Is there some situation where multiple (if this is actually not a needed/intended part of the system structure then I'd also like to know that) Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @Le-Mao. |
Beta Was this translation helpful? Give feedback.
Hi @Le-Mao.
Firstly, thank you for your interest in the framework and sorry for the delay! I did not receive any notification of your question.
We use pandas Series objects here because treatments (and other covariates) can sometimes be non-numeric (e.g. binary or category values). In such cases, the estimators return one coefficient for each possible treatment value, e.g. if variable
Xcan take valuesred,blue, andgreen, andredis the "control" value, then we get a coefficient forX[blue]ANDX[green]. In the vast majority of cases, using the series objects is indeed unnecessary and a little bit annoying, but it is needed to make sure we have a single standard structure for returning …