Function to calculate ratio of cases to non-cases in the sample for an ROC analysis

get_k_roc(p)

Arguments

p

Prevalence or proportion of cases in the relevant population

Source

Obuchowski NA. Fundamentals of clinical research for radiologists: ROC Analysis. American Journal of Roentgenology. 2005;184.

Value

A numeric value of the ratio of cases to non-cases in the sample

Examples

get_k_roc(p = 0.5)
#> [1] 1