| toEQ5Dindex | R Documentation |
Convert EQ-5D dimension scores to a five-digit profile index
toEQ5Dindex(
x,
dim.names = c("mo", "sc", "ua", "pd", "ad"),
na.rm = FALSE,
quiet = FALSE
)
x |
A data.frame, matrix, or named numeric vector of EQ-5D dimension scores. Each dimension must contain integer values (typically 1–3 or 1–5). |
dim.names |
Character vector of length 5 giving the dimension names, in the conventional MO, SC, UA, PD, AD order. |
na.rm |
Logical. If |
quiet |
Logical. Suppress informational messages about assumed column /
name order. Default |
An integer vector with one element per row (data.frame/matrix input)
or a single integer (vector input). Works inside dplyr::mutate()
without rowwise().
# Named vector — scalar usage unchanged
toEQ5Dindex(c(mo=1, sc=2, ua=3, pd=1, ad=2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.