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

How do we handle subunit-level confounding in a hierarchical causal model? #227

Closed
djinnome opened this issue Aug 15, 2024 · 2 comments
Closed

Comments

@djinnome
Copy link
Contributor

Because NxMixedGraph cannot (currently) handle subunit-level observed or latent variables, how should we handle subunit-level confounders?

@adamrupe
Copy link
Collaborator

After discussing with Eli, the theory currently does not account for subunit-level confounding, although they working on a follow-up paper about this. Until that is out, we should add a flag in collapse_HCM to throw an Error if the input HCM has subunit confounding.

@adamrupe
Copy link
Collaborator

Let's add a flag to HierarchicalCausalModel.to_admg() to raise a NotImplementedError if there are unobserved subunit variables in the model with more than one child (i.e. unobserved subunit confounder).
Make a hidden method to check for unobserved confounder.

@adamrupe adamrupe closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants