compute_marg_PR_nested_reg {baker} | R Documentation |
compute positive rates for nested model with subclass mixing weights that are the same across
Jcause
classes for each person (people may have different weights.)
Description
The array version of this function (compute_marg_PR_nested_reg_array) is used in plot_etiology_regression
Usage
compute_marg_PR_nested_reg(ThetaBS, PsiBS, pEti_mat, subwt_mat, case, template)
Arguments
ThetaBS |
True positive rates for |
PsiBS |
False positive rates; dimension same as above |
pEti_mat |
a matrix of etiology pies for |
subwt_mat |
a matrix of subclass weights for cases and controls. |
case |
a N-vector of |
template |
a binary matrix with |
Value
a matrix of values between 0
and 1
(need not to have row sums of ones);
of dimension (number of subjects, dimension of the bronze-standard measurement slice).