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.)
Source: R/compute_functionals_of_model.R
compute_marg_PR_nested_reg.Rd
The array version of this function (compute_marg_PR_nested_reg_array) is used in plot_etiology_regression
Arguments
- ThetaBS
True positive rates for
JBrS
measures (rows) amongK
subclasses (columns)- PsiBS
False positive rates; dimension same as above
- pEti_mat
a matrix of etiology pies for
N
subjects (rows) andJcause
causes (columns) rows sum to ones.- subwt_mat
a matrix of subclass weights for cases and controls.
N
byK
. Rows sum to ones.- case
a N-vector of
1
s (cases) and0
s (controls)- template
a binary matrix with
Jcause+1
rows (Jcause
classes of cases and1
class of controls) andJBrS
columns for the Bronze-standard measurement (say, pick one type/slice). The ones in each row indicate the measurements that will show up more frequently in cases given the cause.