Repository navigation
This release adds U and U' charts, restarts of the algorithm, ranges in which
limits may not be re-established, and a choice of how the dispersion chart of a
pair establishes its limits. It also makes the changes 0.2.0 announced.
Breaking changes
Defaults that change results.
max_exclusionsnow defaults to 0, so points are excluded from a
period's limits only where you ask for it. Where points were excluded under
the old default of 3, the limits move, and where they are re-established can
change. Setmax_exclusions = 3to keep the results of 0.2.0.- The algorithm restarts after a long gap. The new argument
restart_after_gapdefaults toperiod_min, so for a series with a run of
that many points with no value, a calculation period no longer takes points
from both sides of the gap, and limits are no longer carried across it.
restart_after_gap = Infkeeps the behaviour of 0.2.0.
Other results that change.
- With
no_regrets = TRUE, adding a point to the end of a series can no longer
move a re-establishment of limits earlier; some re-establishments are now made
only once a few more points have been added. - A calculation period whose standard deviation cannot be estimated (a C' or P'
period with no variation, or Xbar subgroups of one) no longer takes its limits
from the previous period, so limits can be re-established after it. - Where the first value is missing, the MR chart's first period starts at the
same point as the X chart's.
The drawing. The floating median is drawn in red with long dashes, with its
label just after the line. The line joining the points breaks at missing
values. A series too short for limits is drawn on an axis that starts at zero
for counts, rates and proportions. The legends always appear in the same order.
The results table has a new column, restart.
Removed. show_mr, write_table and facet_stages(split_rows) are gone:
use chart_type, plot_chart = FALSE and split_at. no_regrets = TRUE with
overhanging_reversions = FALSE is now an error.
New
- U and U' charts.
chart_type = "U"draws a chart of rates, such as
infections per 1,000 central line days, and"U'"Laney's U' chart. See
vignette("data-requirements"). - Restarts.
force_restart_atrestarts the algorithm at chosen points, and
restart_after_gapafter a long gap. Each segment is analysed as a series of
its own. prevent_establishment_ingives ranges in which new limits may not be
established.dispersion_chart_establishmentchooses whether the MR or S chart of a
pair finds its own calculation periods ("independent", the default), uses
the location chart's ("forced"), or shares periods with it ("shared").display_windowshows part of the horizontal axis without changing the
analysis.floating_median_styleandfloating_median_labelsset how the
floating median is drawn and which medians are labelled.- Speed. The analysis runs about ten times faster.
Fixes
Among them: X and Xbar charts whose limits are all negative, which failed to
draw; a C' chart of zeros, which warned and lost its vertical axis; the first
centre line label of a chart whose first value is missing; and the log's
"commencing at point NA".
Full details
See NEWS.md for the
complete list, with what each change does and why.
Installing
remotes::install_github("HorridTom/autospc@v0.3.0")What's Changed
Merged pull requests
* Rename mr_upper_limit_factor() to dd4_constant() by @HorridTom in https://github.com//pull/306 * Add u and u' charts by @HorridTom in https://github.com//pull/307 * Bugfix regrets 308 by @HorridTom in https://github.com//pull/309 * Feature median style 315 by @HorridTom in https://github.com//pull/318 * Feature display window 317 by @HorridTom in https://github.com//pull/319 * Speed up the limit-finding loop about tenfold by @HorridTom in https://github.com//pull/320 * Enhancement linebreaks 321 by @HorridTom in https://github.com//pull/322 * Bugfix 323 by @HorridTom in https://github.com//pull/324 * Feature forcing 119 by @HorridTom in https://github.com//pull/328 * Feature gap restart 325 by @HorridTom in https://github.com//pull/329 * Feature median labels 330 by @HorridTom in https://github.com//pull/331 * Fix bug #332 by @HorridTom in https://github.com//pull/333 * Feature mirroring 115 by @HorridTom in https://github.com//pull/334 * Bugfix zero variation 314 by @HorridTom in https://github.com//pull/335 * Update CI checks by @HorridTom in https://github.com//pull/336 * Ensure the tests don't leave Rplots.pdf files by @HorridTom in https://github.com//pull/337 * MR chart's first period starts at the first value; first centre line … by @HorridTom in https://github.com//pull/338 * Fix axis labels on a chart without limits; and interpretation … by @HorridTom in https://github.com//pull/341 * Release 0.3.0 by @HorridTom in https://github.com//pull/342Full Changelog: v0.2.0...v0.3.0