eq5dds: Analyse the descriptive system of an EQ-5D dataset

View source: R/eq5dds.R

eq5ddsR Documentation

Analyse the descriptive system of an EQ-5D dataset

Description

Analyses the descriptive components of an EQ-5D dataset producing summary information either as counts or as percentages.

Usage

eq5dds(data, version, counts = FALSE, by = NULL, ignore.invalid = TRUE, ...)

Arguments

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".

Value

a data.frame or list of data.frames of counts/percentages. Columns contain dimensions names and rows the EQ-5D score.

Examples

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")


eq5d documentation built on Nov. 21, 2023, 1:06 a.m.