get_health_states_from_dimensions | R Documentation |
Merge MO, SC, UA, PD and AD dimension scores to get five digit health states.
get_health_states_from_dimensions(
scores,
version = "5L",
ignore.invalid = TRUE,
dimensions = .get_dimension_names()
)
scores |
a data.fram containing each dimension in a column |
version |
3L, 5L or Y. Used for validating scores when ignore.invalid is FALSE. |
ignore.invalid |
whether to ignore invalid scores. TRUE returns NA, FALSE throws an error. |
dimensions |
character vector specifying "dimensions" column names. Defaults are "MO", "SC", "UA", "PD" and "AD". |
A character vector of individual dimension scores.
scores <- data.frame(MO=c(1,1,1,1,1),SC=c(1,2,1,2,1),
UA=c(1,2,3,2,1),PD=c(3,2,1,2,3),AD=c(3,3,3,3,3))
get_health_states_from_dimensions(scores, version="5L")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.