Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPTW handle PerfectSeparationErrors in the marginal structural model better #147

Open
pzivich opened this issue Oct 1, 2020 · 0 comments
Labels
bug Causal inference Updates for the causal inference branch

Comments

@pzivich
Copy link
Owner

pzivich commented Oct 1, 2020

When the MSM are fit in the IPTW.fit() statement, it is possible for a PerfectSeparationError to occur. This is more of a concern for the linear-binomial models (as opposed to the other). To deal with this issue, I should update to try-except that fills the RD (or RR) with nan's and throw a warning.

Current behavior would be an error and no other models being fit

@pzivich pzivich added bug Causal inference Updates for the causal inference branch labels Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Causal inference Updates for the causal inference branch
Projects
None yet
Development

No branches or pull requests

1 participant