Description Usage Arguments Value Note Author(s) References See Also Examples
The function returns the minus log-likelihood value given sensitivity and specificity of at least three testing methods and prevalence of true positives as parameters, and contingency table of testing results of the methods as data.
1 | loglik(param, ntest, ny, tol = 1e-04)
|
param |
A vector of 2K + 1 parameter values, corresponding to K sensitivity values, K specificity values, and prevalence of true positives, respectively. |
ntest |
An integer of the number of tests performed by each method, i.e., sample size for evaluating the likelihood. |
ny |
A summary counts vector for the contingencies of each combination of test results, must be named according to the 0-1 pattern,
e.g., 010 = results from 3 tests are negative, positive, and negative, respectively. |
tol |
A value of tolerance, default 1e-4. If any |
A single value of minus log-likelihood.
This is an internal function for likelihood calculation.
Xia Shen, Yudi Pawitan
Yang Z, Xu W, Zhai R, Li T, Ning Z, Pawitan Y, Shen X (2020). Triangulation of analysis strategies links complex traits to specific tissues and cell types. Submitted.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.