ODL: ODL

Description Usage Arguments Value References

View source: R/ODL.R

Description

Calculate the logarithm of the Observed Data Likelihood (ODL) when true responses are unknown and repeated tests are performed on a set of test subjects (e.g. genes).

Usage

1
ODL(n_pos, N, theta_0, theta_1, p00, p11, p01, p10)

Arguments

n_pos

Vector of integers specifying the number of tests that produced a positive result for each subject.

N

Integer value giving the total number of repeated tests per subject.

theta_0

A real number (in range [0,1]) giving the prevalence of negative results for a set of test subjects.

theta_1

A real number (in range [0,1]) giving the prevalence of positive results for a set of test subjects.

p00

A real number (in range [0,1]) giving the probability that a test is negative given that the true result is negative (true-negative rate) for a set of test subjects.

p11

A real number (in range [0,1]) giving the probability that a test is positive given that the true result is positive (true-positive rate) for a set of test subjects.

p01

A real number (in range [0,1]) giving the probability that a test is negative given that the true result is positive (false-negative rate) for a set of test subjects.

p10

A real number (in range [0,1]) giving the probability that a test is positive given that the true result is negative (false-positive rate) for a set of test subjects.

Value

A real value giving the 'log(ODL)'.

References

Jakobsdottir and Weeks (2007). Estimating prevalence, false-positive rate, and false-negative rate with use of repeated testing when true responses are unknown. Am J Hum Genet 81:1111-1113.


alex-kalinka-cruk/perept documentation built on Jan. 11, 2020, 3:46 p.m.