eq5d_profile_density_curve: eq5d_profile_density_curve: Generate a Health State Density...

eq5d_profile_density_curveR Documentation

eq5d_profile_density_curve: Generate a Health State Density Curve (HSDC) for EQ-5D Data

Description

This function calculates and plots the Health State Density Curve (HSDC) for a given EQ-5D dataset. It concatenates dimension values to form health state profiles, filters out invalid states based on the specified EQ-5D version, then computes the cumulative distribution of profiles (profiles vs. observations). A diagonal reference line indicates a perfectly even distribution. The function also calculates the Health State Density Index (HSDI), representing how sharply the observed distribution deviates from the diagonal.

Usage

eq5d_profile_density_curve(df, names_eq5d, eq5d_version)

Arguments

df

Data frame with the EQ-5D columns

names_eq5d

Character vector of column names for the EQ-5D dimensions

eq5d_version

Version of the EQ-5D instrument

Value

A list containing:

plot_data

A data frame with the cumulative distribution of profiles

p

A ggplot2 object showing the Health State Density Index

Examples

figure <- eq5d_profile_density_curve(
            df = example_data, 
            names_eq5d = c("mo", "sc", "ua", "pd", "ad"), 
            eq5d_version = "3L"
          )
figure$plot_data
figure$p

eq5dsuite documentation built on May 14, 2026, 5:07 p.m.