Learn R Programming

eq5dsuite (version 1.0.1)

figure_1_3_1: Figure 1.3.1: EQ-5D values plotted against LSS

Description

Figure 1.3.1: EQ-5D values plotted against LSS

Usage

figure_1_3_1(df, names_eq5d = NULL, eq5d_version = NULL, country)

Value

Summary plot and data used for plotting

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

country

A character string representing the name of the country. This could be in a 2-letter format, full name or short name, as specified in the country_codes datasets.

Examples

Run this code
df <- data.frame(make_all_EQ_states(version = "5L"))
tmp <- figure_1_3_1(
 df, 
 names_eq5d = c("mo", "sc", "ua", "pd", "ad"), 
 eq5d_version = "5L", 
 country = "US"
)
tmp$p
tmp$plot_data

Run the code above in your browser using DataLab