table_1_1_2 function

Table 1.1.2: Frequency of levels by dimensions, separated by category

Table 1.1.2: Frequency of levels by dimensions, separated by category

table_1_1_2( df, names_eq5d = NULL, name_cat = NULL, levels_cat = NULL, eq5d_version = NULL )

Arguments

  • df: Data frame with the EQ-5D and follow-up columns
  • names_eq5d: Character vector of column names for the EQ-5D dimensions
  • name_cat: Character string for the category column. If NULL, no grouping is used, and the table reports for the total population, i.e. equal to table 1.1.1.
  • levels_cat: Character vector containing the order of the values in the category column, if the wish is to have these presented in a particular order. If NULL (default value), unless the variable is a factor, the levels will be ordered in the order of appearance in df.
  • eq5d_version: Version of the EQ-5D instrument

Returns

Summary data frame.

Examples

table_1_1_2(df = example_data, name_cat = "surgtype")
  • Maintainer: Kim Rand
  • License: GPL (>= 2)
  • Last published: 2024-05-21

Useful links