compute_nri | R Documentation |
This function computes the IPCW-adjusted Net Reclassification Probability. Presented as S in Li (2013) and Wang (2020)
compute_nri(outcome_mat, pred_mat1, pred_mat2, ipcw_mat)
outcome_mat |
Output from get_outcome_mat function |
pred_mat1 |
matrix of predicted probabilities with model 1 ("old" model) |
pred_mat2 |
matrix of predicted probabilities with model 2 ("new" model) |
ipcw_mat |
Output from get_ipcw_mat function |
a scalar NRI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.