计算 mcnemar 检验的样本量
Calculate sample size to mcnemar test
我想通过使用mcnemar检验比较2个灵敏度值来计算样本量。我正在寻找在 r 下实现此计算的公式。
在这种情况下,我需要使用 Sensitivity_1 = 0.78,Sensitivity_2 = 0.558,不一致对 = 0.4664 来计算样本量
(Sensitivity_2 * (1 - Sensitivity_1 ) + Sensitivity_1 * (1 - Sensitivity_2 ))
有 0.232 (Sensitivity_1 -Sensitivity_2) 的差异。
biostatUZH
包有帮助吗?
对于Windows:
install.packages("biostatUZH", repos = "http://R-Forge.R-project.org")
对于Mac:
install.packages("biostatUZH", repos = "http://R-Forge.R-project.org", type = "source")
参见 sampleSizeMcNemar()
计算 McNemar 检验的样本量。
#example from Lachenbruch (1982), Table II, first row
sampleSizeMcNemar(p1 = 0.8, p2 = 0.9, alpha = 0.05, power = 0.9)
我想通过使用mcnemar检验比较2个灵敏度值来计算样本量。我正在寻找在 r 下实现此计算的公式。 在这种情况下,我需要使用 Sensitivity_1 = 0.78,Sensitivity_2 = 0.558,不一致对 = 0.4664 来计算样本量 (Sensitivity_2 * (1 - Sensitivity_1 ) + Sensitivity_1 * (1 - Sensitivity_2 )) 有 0.232 (Sensitivity_1 -Sensitivity_2) 的差异。
biostatUZH
包有帮助吗?
对于Windows:
install.packages("biostatUZH", repos = "http://R-Forge.R-project.org")
对于Mac:
install.packages("biostatUZH", repos = "http://R-Forge.R-project.org", type = "source")
参见 sampleSizeMcNemar()
计算 McNemar 检验的样本量。
#example from Lachenbruch (1982), Table II, first row
sampleSizeMcNemar(p1 = 0.8, p2 = 0.9, alpha = 0.05, power = 0.9)