Create a PPV matrix helper function
.createPPVmatrix(
min_Prevalence = 1,
max_Prevalence = 1000,
Sensitivity = 100,
Specificity = 99,
one_out_of = TRUE,
PPV_NPV = "PPV",
min_FP = 0,
max_FP = 10,
max_FN = 0,
min_FN = 10,
steps_matrix = 100
)
[x] out of y prevalence of disease
x out of [y] prevalence of disease
Sensitivity of test
Specificity of test
.
Should show PPV or NPV ["PPV", "NPV"]
Minimum False Positive ratio
Maximum False Positive ratio
.
.
How big the matrix should be (probably better to leave as it is: 100)
A DF called PPV_melted