Multiple biomarkers measured on the same subjects are often stored as multiple columns in a data frame. This is a convenience function that transforms the data into long format, suitable for use with ggplot and geom_roc
Arguments
- data
Data frame containing disease status and biomarkers stored in columns
- d
Column containing binary disease status. Can be a column name or index
- m
Vector of column names or indices identifying biomarkers
- names
Optional vector of names to assign to the biomarkers. If NULL, names will be taken from the column names