tolProb {AgreementInterval} | R Documentation |
Function tolProb calculates tolerance probability based on sample size (n), number of discordance pairs (k) and discordance rate (alpha).
tolProb(n, k, alpha = 0.05)
n |
Sample size |
k |
Number of discordance pairs, discordance pairs are defined as samples with difference greater than average interval |
alpha |
Discordance rate, default 0.05. |
Function tolProb calculates tolearance probability based on sample size(n), number of discordance pairs (k) and discordance rate (alpha). Its value is calculated as the largest value such that the following inequality is true:
1-∑ _{i=0}^{k} {n\choose i} * {(1-α)}^{n-i} * {α}^i ≥ β
tolerance probability
Jialin Xu, Jason Liao
Jason J. Z. Liao, Quantifying an Agreement Study, Int. J. Biostat. 2015; 11(1): 125-133
tolProb(n=52, k=5, alpha=0.05) tolProb(n=52, k=0, alpha=0.05)