| figure_1_4_1 | R Documentation |
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.
figure_1_4_1(df, names_eq5d, eq5d_version)
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 |
A list containing:
plot_data |
A data frame with the cumulative distribution of profiles |
p |
A ggplot2 object showing the Health State Density Index |
figure <- figure_1_4_1(
df = example_data,
names_eq5d = c("mo", "sc", "ua", "pd", "ad"),
eq5d_version = "3L"
)
figure$plot_data
figure$p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.