Skip to content

feat: add configurable rateDenominator to estimateIncidence#26

Open
merqurio wants to merge 9 commits into
darwin-eu:mainfrom
iomedhealth:main
Open

feat: add configurable rateDenominator to estimateIncidence#26
merqurio wants to merge 9 commits into
darwin-eu:mainfrom
iomedhealth:main

Conversation

@merqurio

Copy link
Copy Markdown
  • Add rateDenominator parameter to estimateIncidence (default 100,000).
  • Update incidence calculation and CI estimation to support custom denominators.
  • Dynamically name incidence columns (e.g. for a 1000 denominator incidence_1000_pys) based on the denominator.
  • Update tableIncidence, plotIncidence, and related plotting functions to support dynamic column names.
  • Add tests for custom rate denominators.

@merqurio

Copy link
Copy Markdown
Author

Hey @edward-burn , let me know if there's something else I should do, I see all the tests passing.

══ Results ═════════════════
Duration: 380.5 s

[ FAIL 0 | WARN 7 | SKIP 0 | PASS 679 ]

@merqurio merqurio force-pushed the main branch 2 times, most recently from f063b68 to 11cab4c Compare February 12, 2026 17:55
- Add rateDenominator parameter to estimateIncidence (default 100,000).
- Update incidence calculation and CI estimation to support custom denominators.
- Dynamically name incidence columns (e.g. incidence_1000_pys) based on the denominator.
- Update tableIncidence, plotIncidence, and related plotting functions to support dynamic column names.
- Add tests for custom rate denominators.
@edward-burn

Copy link
Copy Markdown
Collaborator

Hi @merqurio unfortunately I cant accept contrributions to darwin eu packages from external contributors https://github.com/darwin-eu/IncidencePrevalence?tab=contributing-ov-file

I'm not so opposed to adding an additional parameter like this (but with the need to balance against desire to keep number of arguments down to a manageable amount). So, if it's OK, could you open an issue with this as a feature request and I can see what I can do

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.

2 participants