Skip to content

Commit

Permalink
Release 0.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
anhoej committed May 9, 2024
1 parent 2153d2b commit e111f90
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
14 changes: 7 additions & 7 deletions R/bchart.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
#' @export

bchart <- function(
x,
target,
or = 2,
limit = 3.5,
title = '',
ylab = 'CUSUM',
xlab = 'Case #') {
x,
target,
or = 2,
limit = 3.5,
title = '',
ylab = 'CUSUM',
xlab = 'Case #') {
if(target > 1) {
freeze <- target
p0 <- mean(x[1:target])
Expand Down
2 changes: 1 addition & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
#' harm; G-H: Permanent harm; I: Fatal harm. }
#' @source Omitted for privacy concerns.
#' @references
#' \url{https://www.ihi.org/resources/Pages/Tools/IHIGlobalTriggerToolforMeasuringAEs.aspx}
#' \url{https://www.ihi.org/resources/white-papers/ihi-global-trigger-tool-measuring-adverse-events}
#'
"gtt"
5 changes: 0 additions & 5 deletions R/qic.plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,8 @@ plot.qic <- function(x, title, ylab, xlab, subtitle, caption, part.labels,
# Add space for line labels
subgroups <- unique(x$x)

# TESTING ##########################
# if (is.factor(subgroups))
# subgroups <- as.numeric(subgroups)

if(is.character(subgroups) || is.factor(subgroups))
subgroups <- seq_along(subgroups)
# TESTING ##########################

p <- p +
expand_limits(x = max((subgroups)) +
Expand Down
2 changes: 1 addition & 1 deletion man/gtt.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/qicharts2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ I recommend to always begin any analysis with the "assumption free" run chart. I
>
>If it did, then it makes no sense to do a control chart at this time because the overall average of all these data doesn't exist. (Sort of like: If I put my right foot in a bucket of boiling water and my left foot in a bucket of ice water, on average, I'm pretty comfortable.)
>
> Davis Balestracci. [Quality Digest 2014](https://www.qualitydigest.com/inside/quality-insider-column/control-charts-simple-elegance-or-legalized-torture.html)
> Davis Balestracci. [Quality Digest 2014](https://www.qualitydigest.com/inside/six-sigma-column/control-charts-simple-elegance-or-legalized-torture-010614.html)
## Case 1: Patient harm

Expand Down

0 comments on commit e111f90

Please sign in to comment.