Skip to content

Add formula Parser for Hierarchical DiD#862

Draft
jsakv wants to merge 12 commits into
pymc-labs:mainfrom
jsakv:hdid-parser
Draft

Add formula Parser for Hierarchical DiD#862
jsakv wants to merge 12 commits into
pymc-labs:mainfrom
jsakv:hdid-parser

Conversation

@jsakv
Copy link
Copy Markdown
Contributor

@jsakv jsakv commented Apr 23, 2026

This PR adds a MixedModelFormula and a MixedModelMatrices duck typing formulaic Formula and ModelMatrix.

This PR is part of the issue #656 (Hierarchical DiD experiment) resolution.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Welcome to CausalPy, @jsakv!

Thank you for opening your first pull request! We're excited to have you contribute to the project. 🎉

Here are a few tips to help your PR get merged smoothly:

  • ✅ Make sure all CI checks pass (tests, linting, type checking)
  • 📝 Run prek run --all-files locally before pushing
  • 📖 Check our Contributing Guide for more details

A maintainer will review your changes soon. Thanks for helping make CausalPy better! 🚀


💼 LinkedIn Shoutout: Once your PR is merged, we'd love to give you a shoutout on LinkedIn to thank you for your contribution! If you're interested, just drop your LinkedIn profile URL in a comment below.

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented Apr 23, 2026

Documentation build overview

📚 causalpy | 🛠️ Build #32774128 | 📁 Comparing b6fabda against latest (78ec91d)

  🔍 Preview build  

283 files changed · + 98 added · ± 184 modified · - 1 deleted

+ Added

± Modified

- Deleted

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 96.34465% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.10%. Comparing base (d56b781) to head (b6fabda).

Files with missing lines Patch % Lines
causalpy/formula.py 91.21% 8 Missing and 5 partials ⚠️
causalpy/tests/test_pymc_models.py 98.86% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #862      +/-   ##
==========================================
+ Coverage   95.07%   95.10%   +0.03%     
==========================================
  Files          87       89       +2     
  Lines       13701    14084     +383     
  Branches      812      829      +17     
==========================================
+ Hits        13026    13395     +369     
- Misses        479      487       +8     
- Partials      196      202       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jsakv jsakv force-pushed the hdid-parser branch 2 times, most recently from 10f825c to d4f6ca6 Compare May 7, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant