hsdi | R Documentation |
Calculate the Health State Density Index (HSDI) for an EQ-5D dataset.
hsdi(scores, version = NULL, ignore.invalid = TRUE, digits = 2, ...)
scores |
scores 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. |
ignore.invalid |
booloean whether to ignore invalid scores. TRUE returns NA, FALSE throws an error. |
digits |
numeric specifying the number of decimal places for percentages. Defaults to 1, use NULL to skip rounding. |
... |
character vector, specifying "dimensions" column names. Defaults are "MO", "SC", "UA", "PD" and "AD". |
numeric containing the HSDI value.
dat <- read.csv(system.file("extdata", "eq5d3l_example.csv", package="eq5d"))
hsdi(dat, version="3L")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.