Nothing
## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(eq5dsuite)
## ----eqxw-example-------------------------------------------------------------
eq5d5l_data <- data.frame(
id = 1:5,
mo = c(1, 2, 3, 1, 2),
sc = c(1, 1, 2, 1, 3),
ua = c(2, 1, 3, 1, 2),
pd = c(2, 3, 2, 1, 4),
ad = c(1, 2, 1, 3, 2)
)
# Apply crosswalk using UK 3L value set
eq5d5l_data$value_xw <- eqxw(
eq5d5l_data,
country = "UK",
dim.names = c("mo", "sc", "ua", "pd", "ad")
)
eq5d5l_data
## ----eqxwr-example------------------------------------------------------------
eq5d3l_data <- data.frame(
id = 1:5,
mo = c(1, 2, 1, 3, 2),
sc = c(1, 1, 2, 2, 1),
ua = c(1, 2, 1, 3, 2),
pd = c(2, 2, 1, 3, 3),
ad = c(1, 1, 2, 2, 1)
)
# Apply reverse crosswalk using Spain 5L value set
eq5d3l_data$value_rxw <- eqxwr(
eq5d3l_data,
country = "ES",
dim.names = c("mo", "sc", "ua", "pd", "ad")
)
eq5d3l_data
## ----eqxw-uk-example----------------------------------------------------------
uk_data <- data.frame(
id = 1:5,
mo = c(1, 2, 1, 3, 2),
sc = c(1, 1, 2, 2, 1),
ua = c(1, 2, 1, 3, 2),
pd = c(2, 2, 1, 3, 3),
ad = c(1, 1, 2, 2, 1),
age = c(45, 62, 38, 71, 55),
male = c(1, 0, 1, 0, 1)
)
uk_data$value_uk <- eqxw_UK(
uk_data,
age = "age",
male = "male"
)
uk_data
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.