value_5L {valueEQ5D}R Documentation

Function to value EQ-5D-5L scores for any country and group by gender and age

Description

Function to value EQ-5D-5L descriptive system to index value.

Usage

value_5L(
  eq5dresponse_data,
  mo,
  sc,
  ua,
  pd,
  ad,
  country = "England",
  groupby = NULL,
  agelimit = NULL
)

Arguments

eq5dresponse_data

the data containing eq5d responses

mo

column name for EQ-5D-5L mobility

sc

column name for response for EQ-5D-5L self care

ua

column name for response for EQ-5D-5L usual activities

pd

column name for response for EQ-5D-5L pain/discomfort

column name for response for EQ-5D-5L anxiety/depression

country

country of interest, by default is England

groupby

male or female -grouping by gender, default NULL

agelimit

vector of ages to show upper and lower limits, default NULL

Value

index value if success, negative values for failure

Examples

data <- data.frame(
  age = c(10, 20), sex = c("M", "F"),
  mo = c(1, 2), sc = c(1, 2), ua = c(3, 4), pd = c(3, 4), ad = c(3, 4)
)
value_5L(data, "mo", "sc", "ua", "pd", "ad", "England", NULL, c(10, 70))

[Package valueEQ5D version 0.7.2 Index]