map_5Lto3L_NICE2022: Function to map EQ-5D-5L scores to EQ-5D-3L index values as...

View source: R/eq5d.R

map_5Lto3L_NICE2022R Documentation

Function to map EQ-5D-5L scores to EQ-5D-3L index values as per the specific country and by gender and age or agegroup for a dataset

Description

Function to map EQ-5D-5L scores to EQ-5D-3L index values

Usage

map_5Lto3L_NICE2022(
  eq5dresponse_data,
  mobility,
  self_care,
  usual_activities,
  pain_discomfort,
  anxiety,
  country = "UK",
  gendercol,
  agecol,
  agegroupcol = NA,
  groupby = NA,
  agelimit = NA
)

Arguments

eq5dresponse_data

the data containing eq5d5L responses

mobility

column name for EQ-5D-5L mobility

self_care

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

usual_activities

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

pain_discomfort

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

anxiety

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

country

country of interest, by default is UK, if groupby has to specify the country should be specified

gendercol

name of gender column

agecol

name of age column

agegroupcol

name of age group column

groupby

male or female -grouping by gender, default NULL

agelimit

vector of ages to show upper and lower limits

Value

index value if success, negative values for failure

Examples

data <- data.frame(
age = c(40, 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))
map_5Lto3L_NICE2022(data, "mo", "sc", "ua", "pd","ad", "UK", "sex", "age")

sheejamk/valueEQ5D documentation built on Oct. 8, 2022, 7:46 a.m.