Learn R Programming

reportROC (version 3.6)

aSAH: Subarachnoid hemorrhage data

Description

This dataset summarizes several clinical and one laboratory variable of 113 patients with an aneurysmal subarachnoid hemorrhage.

Usage

aSAH

Arguments

Format

A data.frame containing 113 observations of 7 variables.

References

Xavier Robin, Natacha Turck, Alexandre Hainard, et al. (2011). pROC: an open-source package for R and S+ to analyze and compare ROC curves. BMC Bioinformatics. 7, 77. 10.1186/1471-2105-12-77

Examples

Run this code
# NOT RUN {
# load the dataset
data(aSAH)

# Gender, outcome and set
with(aSAH, table(gender, outcome))

# Age
with(aSAH, by(age, outcome, mean))
with(aSAH, by(age, outcome,
     function(x) sprintf("mean: %.1f (+/- %.1f), median: %.1f (%i-%i)",
                         mean(x), sd(x), median(x), min(x), max(x))))

# WFNS score
with(aSAH, table(wfns=ifelse(wfns<=2, "1-2", "3-4-5"), outcome))

# }

Run the code above in your browser using DataLab