powered by
Calculate key descriptive statistics for a given set of data.
describe_data(data, data_name, criterion_name, baseline_value)
A data frame with the descriptive statistics.
A data frame with a criterion variable criterion_name.
criterion_name
A character string specifying a name for the data.
A character string specifying the criterion name.
The value in criterion_name denoting the baseline (e.g., TRUE or FALSE).
TRUE
FALSE
data(heartdisease) describe_data(heartdisease, "heartdisease", criterion_name = "diagnosis", baseline_value = TRUE)
Run the code above in your browser using DataLab