value_5L: Function to value EQ-5D-5L scores for any country and group...

Description Usage Arguments Value Examples

View source: R/eq5d.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

ad

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

1
2
3
4
5
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))

valueEQ5D documentation built on Oct. 6, 2021, 5:10 p.m.