hpg: Calculate the Health Profile Grid

View source: R/eqhpg.R

hpgR Documentation

Calculate the Health Profile Grid

Description

Calculate the Health Profile Grid (HPG) for two EQ-5D datasets.

Usage

hpg(
  pre,
  post,
  country = NULL,
  version = NULL,
  type = NULL,
  ignore.invalid = TRUE,
  dimensions = .get_dimension_names(),
  no.problems = TRUE
)

Arguments

pre

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.

post

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.

country

string of value set country name used.

version

string of value "3L" or "5L" to indicate instrument version.

type

string specifying method type used in deriving value set scores. Options are TTO or VAS for EQ-5D-3L, VT for EQ-5D-5L, CW for EQ-5D-5L crosswalk conversion valuesets, RCW for EQ-5D-3L reverse crosswalk conversion valuesets.

ignore.invalid

boolean whether to ignore invalid scores. TRUE returns NA, FALSE throws an error.

dimensions

character vector, specifying "dimension" column names. Defaults are "MO", "SC", "UA", "PD" and "AD".

no.problems

boolean. Summarise 11111 "No change" subjects in a "No problems" group.

Value

a data.frame or list of data.frames containing the columns Pre, Post and PCHC. Pre and Post contain the severity rankings and PCHC the PCHC category.

Examples

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

pre <- dat[dat$Group=="Group1",][1:50,]
post <- dat[dat$Group=="Group2",][1:50,]
res <- hpg(pre, post, country="UK", version="3L", type="TTO")
head(res)


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