Learn R Programming

phiDelta (version 1.0.1)

calculate_delta: calculate delta

Description

calculates delta out of specificity and sensitivity depending on the ratio

Usage

calculate_delta(spec, sens, ratio = 1)

Arguments

spec

is the specificity, the true negative rate

sens

is the sensitivity, the true positive rate

ratio

is the ratio of positive and negative of the data. The default is 1

Value

delta

Examples

Run this code
# NOT RUN {
calculate_delta(1,0)
calculate_delta(0.5,0.3)
# }

Run the code above in your browser using DataLab