Replace magic-g in g-formula implementations #63
Labels
Causal inference
Updates for the causal inference branch
change
Docs
Updates to the docs / print functions
enhancement
Both
TimeFixedGFormula
andTimeVaryGFormula
leverage a "magic-g" factor to implement custom treatment plans (i.e. treatments aside from "all" and "none" specifications)As discussed in #61 it is not readily clear to users that the magic-g factor exists and is necessary. While in the function documentation and on the website, it would be beneficial to be clearer. For now, I am going to attempt to make the documentation clearer. If I find an adequate solution (that works for both implementations), then I will make that transition in the future.
Bandage for Current
Make better documentation available on both website and function documentation
Create a better warning/error handler for when the magic-g is NOT specified
Requirements
Evaluate the data row-by-row
Needs to be able to handle multiple conditionals
Alternatives
pd.query()
looks promising. However, it does not evaluate as I would hope. It returns thedf[...]
data. What I would like it a vector of0
and1
(or others depending on variable type).pd.eval()
look it toThe text was updated successfully, but these errors were encountered: