eq5dds | R Documentation |
Analyses the descriptive components of an EQ-5D dataset producing summary information either as counts or as percentages.
eq5dds(data, version, counts = FALSE, by = NULL, ignore.invalid = TRUE, ...)
data |
numeric or data.frame with names/colnames MO, SC, UA, PD and AD representing Mobility, Self-care, Usual activities, Pain/discomfort and Anxiety/depression. Alternatively an EQ-5D score can be provided in five digit format e.g. 12321. |
version |
string of value "3L" or "5L" to indicate instrument version. |
counts |
logical show absolute counts in the summary table. Default is FALSE, which shows percentages for each EQ-5D dimension. |
by |
character specifying the column in the data.frame by which to group the results. |
ignore.invalid |
boolean whether to ignore invalid scores. TRUE returns NA, FALSE throws an error. |
... |
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 <- data.frame(
matrix(
sample(1:3,5*12, replace=TRUE),12,5,
dimnames=list(1:12,c("MO","SC","UA","PD","AD"))
),
Sex=rep(c("Male", "Female"))
)
eq5dds(dat, version="3L")
eq5dds(dat, version="3L", counts=TRUE)
eq5dds(dat, version="3L", by="Sex")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.