Open francisbarton opened 1 month ago
The code that generates the warning is in ptd_add_short_group_warnings.R:
warning_threshold = getOption("ptd_spc.warning_threshold", 13))
As 12 < 13, the warning is being triggered by groups where n = 12. Either the fallback value here needs to be set to 12, or the warning needs to say that:
Some groups have 'n <= 12' observations
or (more accurately, given the code above):
Some groups have 'n < 13' observations
As seen in
deviations.Rmd
.Each group has 12 points as can be seen in the output from
summary()
below.However the warning message still appears, suggesting that "some groups have... < 12 observations".
reprex:
Created on 2024-08-08 with reprex v2.1.1
Should the warning say
<= 12
or is it being incorrectly triggered?