pchc | R Documentation |
Calculate the Paretian Classification of Health Change (PCHC) for two EQ-5D datasets.
pchc(
pre,
post,
version = NULL,
no.problems = TRUE,
totals = TRUE,
by.dimension = FALSE,
ignore.invalid = TRUE,
dimensions = .get_dimension_names(),
summary = TRUE
)
pre |
data.frame, numeric or character. For data.frame default column names should be MO, SC, UA, PD and AD representing Mobility, Self-care, Usual activities, Pain/discomfort and Anxiety/depression. Vector using five digit format can also be used. |
post |
data.frame, numeric or character. For data.frame default column names should be MO, SC, UA, PD and AD representing Mobility, Self-care, Usual activities, Pain/discomfort and Anxiety/depression. Vector using five digit format can also be used. |
version |
string of value "3L" or "5L" to indicate instrument version. |
no.problems |
boolean. Summarise 11111 "No change" subjects in a "No problems" group. |
totals |
boolean. Include a summary total. |
by.dimension |
boolean. Summarise results by each EQ-5D dimension rather than by the whole dataset. |
ignore.invalid |
boolean whether to ignore invalid scores. TRUE returns NA, FALSE throws an error. |
dimensions |
character vector, specifying "dimension" column names. Defaults are "MO", "SC", "UA", "PD" and "AD". |
summary |
boolean. Summarise results or return all classifications. |
a data.frame or list of data.frames of changes according to PCHC. contain dimensions names and rows the EQ-5D score or, if summary=FALSE, a vector or list of vectors of changes.
dat <- read.csv(system.file("extdata", "eq5d3l_example.csv", package="eq5d"))
pre <- dat[dat$Group=="Group1",][1:50,]
post <- dat[dat$Group=="Group2",][1:50,]
pchc(pre, post, version="3L", no.problems=FALSE, totals=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.