You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to extend the CTF by processing the output of EffectEstimate (and its surrounding classes), and I notice pd.Series is used for each value and cis.
As far as I can tell though, there's no instance of EffectEstimate in the CTF where multiple values are used in the same Series attribute here - I'm not even sure what that would mean.
Is there some situation where multiple values would be used by the same EffectEstimate? Or am I missing something about the way the class is used that justifies the use of pd.Series here? /genq
(if this is actually not a needed/intended part of the system structure then I'd also like to know that)
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 X can take values red, blue, and green, and red is the "control" value, then we get a coefficient for X[blue] AND X[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 outputs that also works in this case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to extend the CTF by processing the output of
EffectEstimate(and its surrounding classes), and I notice pd.Series is used for eachvalueandcis.As far as I can tell though, there's no instance of
EffectEstimatein the CTF where multiple values are used in the same Series attribute here - I'm not even sure what that would mean.Is there some situation where multiple
values would be used by the sameEffectEstimate? Or am I missing something about the way the class is used that justifies the use ofpd.Serieshere? /genq(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.
All reactions