figure_1_4_1 {eq5dsuite} | R Documentation |
Figure 1.4.1: 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
figure_1_4_1(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 <- figure_1_4_1(
df = example_data,
names_eq5d = c("mo", "sc", "ua", "pd", "ad"),
eq5d_version = "3L"
)
figure$plot_data
figure$p