R/roc.R
get_nc_roc.Rd
Function to calculate the number of cases needed for an ROC analysis for a single test
get_nc_roc(z = 1.96, precision = 0.05, vf)
z | The z-score/z-value for a 95% confidence interval. Typical vaues
for |
---|---|
precision | The numeric value of the desired precision. Default is set at ±5% (0.05). |
vf | Variance function of the area under the curve (AUC) for the received operator characteristic (ROC) surve sample size calculations |
Obuchowski NA. Fundamentals of clinical research for radiologists: ROC Analysis. American Journal of Roentgenology. 2005;184.
A numeric value for the number of cases needed for an ROC analysis for a single test
get_nc_roc(z = 1.96, precision = 0.05, vf = 0.00991024)#> [1] 15.22847