ThomUK / SPCreporter

Creates Metric Reports using Statistical Process Control in the NHS style
https://thomuk.github.io/SPCreporter/
Other
6 stars 2 forks source link

Add rare event chart capability #73

Closed francisbarton closed 9 months ago

francisbarton commented 10 months ago

If the rare event chart flag is set to "Y" in the report_config and there is calculated "days between" data in the "none" sheet of the measure data file, a "days between" chart should be created.

All tests and package checks pass.

Designed to partially address issue #4

ThomUK commented 10 months ago

This is great, thanks Fran! Particular nod to the effort to untangle conflicts following recent dev work.

I'd like to give it a test - drive before merging to understand how to use the functionality. In doing that I'll also understand enough to write a vignette covering theory and usage.

ThomUK commented 10 months ago

One question, what is partial about the change?

Designed to partially address issue #4

francisbarton commented 10 months ago

I think it's partial in two ways:

ThomUK commented 10 months ago

I really appreciate this contribution Fran. I'm going to pause other development until we find a way to get this merged.

Quick review:

I love:

Possible changes after initial merge:

ThomUK commented 9 months ago

I'm merging this to a temporary dev branch, because I want to change the API slightly.
I'd like rare events to be supplied as an event list, and for the processing to be done inside this package. This is in keeping with the method used by the making data count excel tools.

I will open issues for the rare events vignette, and the improvement to the commentary for each chart in the example report.