Currently points such as these are flagged as special-cause because they satisfy the "2 of 3 points close to limits" rule. In this case both points are close to limits, but they are on opposite sides of the mean, so they should be reported as common-cause, not special-cause.
Currently points such as these are flagged as special-cause because they satisfy the "2 of 3 points close to limits" rule. In this case both points are close to limits, but they are on opposite sides of the mean, so they should be reported as common-cause, not special-cause.
This function should check that the points are both on the same side of the mean before applying a special cause flag. https://github.com/nhs-r-community/NHSRplotthedots/blob/5a4af03caff10a7ea6b8027ca72feae4b1003584/R/ptd_calculate_point_type.R#L73