eq5dcf | R Documentation |
Calculate the frequency, percentage, cumulative frequency and cumulative percentage for each profile in an EQ-5D dataset.
eq5dcf(data, version, ignore.invalid, proportions, digits, ...)
data |
A data.frame with columns MO, SC, UA, PD and AD representing Mobility, Self-care, Usual activities, Pain/discomfort and Anxiety/depression or a "State" column containing five digit scores. Alternatively a vector of five digit scores can also be used. |
version |
string of value "3L" or "5L" to indicate instrument version. |
ignore.invalid |
booloean whether to ignore invalid scores. TRUE returns NA, FALSE throws an error. |
proportions |
boolean whether to include proportion data columns Proportions and CumulativeProp. Default is FALSE. |
digits |
numeric specifying the number of decimal places for percentages. Defaults to 1. |
... |
character vector, specifying "dimensions" column names. Defaults are "MO", "SC", "UA", "PD" and "AD". |
a data.frame or list of data.frames of counts/percentages. Columns contain dimensions names and rows the EQ-5D score.
dat <- read.csv(system.file("extdata", "eq5d3l_example.csv", package="eq5d"))
eq5dcf(dat, "3L")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.