The method
Lu et al. (2016) treat agreement as two one-sided tests: the upper confidence limit of the upper limit of agreement must fall below the maximum allowed difference , and the lower confidence limit of the lower limit must fall above . With expected mean difference , SD and for 95% limits:
and are the probabilities that a non-central variable with degrees of freedom and non-centrality or falls below (eqs. 3–4), and power (eq. 5). The calculator finds the smallest n whose power reaches your target. The non-central t distribution is computed with Lenth's (1989) algorithm AS 243.
Choosing the inputs
The mean and SD of the differences should come from a pilot study or a published validation of a similar device. The wearable accuracy tables list published bias and limits of agreement for heart rate, HRV, SpO2 and sleep, and the SD can be recovered from published limits as . The maximum allowed difference is a clinical or practical judgement and must be set before the study. The required rises steeply as approaches , and no sample size works once is below that.
How it compares with the paper
The calculator reproduces R's SimplyAgree::blandPowerCurve, which implements the same equations, to seven decimal places of power. For the paper's worked example (, , , , 80% power) it returns 79 pairs with 80.2% power. The paper reports 83, and its Table 1 values run 1–3 higher than the smallest n that meets equation 5, because the paper starts from an iterative approximation (its equation 6) and steps upward. Either way the power at the paper's n is above the target, so 83 is a slightly conservative choice.