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.RdThe array version of this function (compute_marg_PR_nested_reg_array) is used in plot_etiology_regression
Arguments
- ThetaBS
True positive rates for
JBrSmeasures (rows) amongKsubclasses (columns)- PsiBS
False positive rates; dimension same as above
- pEti_mat
a matrix of etiology pies for
Nsubjects (rows) andJcausecauses (columns) rows sum to ones.- subwt_mat
a matrix of subclass weights for cases and controls.
NbyK. Rows sum to ones.- case
a N-vector of
1s (cases) and0s (controls)- template
a binary matrix with
Jcause+1rows (Jcauseclasses of cases and1class of controls) andJBrScolumns 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.