hsdi: Calculate the Health State Density Index

View source: R/eqhsdi.R

hsdiR Documentation

Calculate the Health State Density Index

Description

Calculate the Health State Density Index (HSDI) for an EQ-5D dataset.

Usage

hsdi(scores, version = NULL, ignore.invalid = TRUE, digits = 2, ...)

Arguments

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

Value

numeric containing the HSDI value.

Examples

dat <- read.csv(system.file("extdata", "eq5d3l_example.csv", package="eq5d"))
hsdi(dat, version="3L")


eq5d documentation built on Sept. 11, 2024, 7:34 p.m.