Skip to contents

Generic function that lists value sets available.

Usage

available_valuesets(x, ...)

# S3 method for default
available_valuesets(x, ...)

# S3 method for EQ5D5L
available_valuesets(x, ...)

# S3 method for EQ5D3L
available_valuesets(x, ...)

# S3 method for EQ5DY
available_valuesets(x, ...)

# S3 method for character
available_valuesets(x, ...)

Arguments

x

An R object.

...

Further arguments passed to or from other methods.

Value

A data.frame containing the available value sets for the given object or survey type.

Details

available_valuesets() returns the available valuesets from the eq5d package. It is an s3 generic that wraps the eq5d::valuesets() function providing additional methods for eq5d and character objects.

For character objects, the input is expected to be the survey type with various forms permitted:

  • "eq5d5l", "EQ5D5L", "eq-5d-5l", "EQ-5D-5L", "5L", "5l"

  • "eq5d3l", "EQ5D3L", "eq-5d-3l", "EQ-5D-3L", "3L", "3l"

  • "eq5dy" , "EQ5DY" , "eq-5d-y" , "EQ-5D-Y" , "Y" , "y"

If called with no arguments value sets for all available version, type and country combination are returned.

Examples


data("eq5d3l_example")
dat <- as_eq5d3l(
    eq5d3l_example,
    respondentID = "respondentID",
    surveyID = "surveyID",
    mobility = "MO",
    self_care = "SC",
    usual = "UA",
    pain = "PD",
    anxiety = "AD",
    vas = "vas"
)
available_valuesets(dat)
#> # A data frame: 51 × 3
#>    Version  Type  Country  
#>    <chr>    <chr> <chr>    
#>  1 EQ-5D-3L TTO   Argentina
#>  2 EQ-5D-3L TTO   Australia
#>  3 EQ-5D-3L TTO   Brazil   
#>  4 EQ-5D-3L TTO   Canada   
#>  5 EQ-5D-3L TTO   Chile    
#>  6 EQ-5D-3L TTO   China    
#>  7 EQ-5D-3L TTO   Denmark  
#>  8 EQ-5D-3L TTO   Ecuador  
#>  9 EQ-5D-3L TTO   France   
#> 10 EQ-5D-3L TTO   Germany  
#> # … with 41 more rows
#> # ℹ Use `print(n = ...)` to see more rows
available_valuesets("eq5d5l")
#> # A data frame: 54 × 3
#>    Version  Type  Country 
#>    <chr>    <chr> <chr>   
#>  1 EQ-5D-5L VT    Belgium 
#>  2 EQ-5D-5L VT    Canada  
#>  3 EQ-5D-5L VT    China   
#>  4 EQ-5D-5L VT    Denmark 
#>  5 EQ-5D-5L VT    Egypt   
#>  6 EQ-5D-5L VT    England 
#>  7 EQ-5D-5L VT    Ethiopia
#>  8 EQ-5D-5L VT    France  
#>  9 EQ-5D-5L VT    Germany 
#> 10 EQ-5D-5L VT    HongKong
#> # … with 44 more rows
#> # ℹ Use `print(n = ...)` to see more rows