tolProb {AgreementInterval} | R Documentation |
tolProb
Description
Function tolProb calculates tolerance probability based on sample size (n), number of discordance pairs (k) and discordance rate (alpha).
Usage
tolProb(n, k, alpha = 0.05)
Arguments
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. |
Details
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-\sum _{i=0}^{k} {n\choose i} * {(1-\alpha)}^{n-i} * {\alpha}^i \ge \beta
Value
tolerance probability
Author(s)
Jialin Xu, Jason Liao
References
Jason J. Z. Liao, Quantifying an Agreement Study, Int. J. Biostat. 2015; 11(1): 125-133
Examples
tolProb(n=52, k=5, alpha=0.05)
tolProb(n=52, k=0, alpha=0.05)
[Package AgreementInterval version 0.1.1 Index]