Generic function that calculates the limitation of survey
responses across response dimensions. Here we define a limitation to be a
dimension value not equal to 1. Methods are provided for
eq5d
objects.
Usage
calculate_limitation(x, ...)
# S3 method for default
calculate_limitation(x, ...)
# S3 method for EQ5D
calculate_limitation(x, ...)
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"
)
calculate_limitation(dat)
#> # A data frame: 5 × 3
#> surveyID dimension without_limitation
#> <fct> <fct> <dbl>
#> 1 survey01 MO 0.525
#> 2 survey01 SC 0.6
#> 3 survey01 UA 0.395
#> 4 survey01 PD 0.17
#> 5 survey01 AD 0.655