Description Usage Arguments Details Value
View source: R/reliability_sample_size_estimation.R
Function that takes a given width of a confidence interval (w), number of replicates (n), z score for confidence interval required (z), and planned ICC value (p_h) Formulas given by Shoukri et al., 2004 (equation 7) Shoukri MM, Asyali MH & Donner A (2004). Sample size requirements for the design of reliability study: review and new results. Statistical Methods in Medical Research 13, 251-271.
1 | reliability_sample_size_estimation(w, n, z, p_h, type)
|
w |
numeric value or vector of values for width of the confidence interval |
n |
numeric value for number of replicates |
z |
numeric value indicating the z score value for a given confidence interval (e.g., 1.96 for 95% CI) |
p_h |
numeric value or vector of values for expected/planned ICC |
type |
string input taking form of "single" or "multiple". |
For: w = 0.2, n = 3, z = 1.96, p_h = 0.8, type = "single, should equal k = 35, k1 = 36 to fit with Table 3 in Shoukri et al., 2004
dataframe consisting of two values (type = "single") for k and K1, or large dataframe with k and k1 values for a range of w and p_h values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.