Description Usage Arguments Details

Calculates family-wise sensitivity, specificity, positive and negative predictive value, concordance and net benefit for a vector of predictors.

1 2 |

`x` |
Matrix of predicted risks. Each row corresponds to an individual, each column to a trait. Each entry should be a risk between 0 and 1. |

`y` |
Matrix of traits. Each row corresponds to an individual, each column to a trait. Must contain binary events coded as 0 and 1. |

`thresh` |
Vector of risk thresholds. For each row of x, an event is predicted for each trait that exceeds the corresponding element of thresh. These predictions are then compared to the elements of y. |

`target` |
Target trait vector for evaluating family-wise measures of accuracy. |

`target2` |
Second target vector for calculating family-wise concordance. |

`sample` |
Number of random samples to draw when estimating concordance. Defaults to 0, in which case all pairs of individuals in x are considered. |

`prev` |
Population prevalence of |

Family-wise measures consider the prediction of at least one event within a fixed target vector.
If `target`

is NULL, which is the default, then the marginal measures are calculated across the distribution of
trait vectors. Unlike classical sensitivity, specificity and concordance, the measures then depend upon the
distribution of traits in the input data, which may differ from that in the population.

If `prev`

is not specified, it is estimated from the `y`

matrix, ignoring ascertainment.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.