Learn R Programming

eq5dsuite (version 1.0.1)

figure_3_1: Figure 3.1: EQ-5D values by timepoints: mean values and 95% confidence intervals

Description

Figure 3.1: EQ-5D values by timepoints: mean values and 95% confidence intervals

Usage

figure_3_1(
  df,
  names_eq5d = NULL,
  name_fu = NULL,
  levels_fu = NULL,
  eq5d_version = NULL,
  country
)

Value

Summary plot and data used for plotting

Arguments

df

Data frame with the VAS columns

names_eq5d

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

name_fu

Character string for the follow-up column

levels_fu

Character vector containing the order of the values in the follow-up column. If NULL (default value), the levels will be ordered in the order of appearance in df.

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
tmp <- figure_3_1(
 example_data,
 names_eq5d = c("mo", "sc", "ua", "pd", "ad"), 
 name_fu = "time",
 levels_fu = c('Pre-op', 'Post-op'),
 eq5d_version = "3L",
 country = "UK"
)
tmp$p
tmp$plot_data

Run the code above in your browser using DataLab