Sum scores for each individual. Allows arbitrary number of scores to be calculated using single function call.

sum_score(.data, ...)

Arguments

.data

the data which contains the variables to be summed over.

...

the names of the variables to be summed over.

Value

returns scores summed over the given variables.

Examples

if (FALSE) { # Lets calculate two different Elixhauser scores for a data set 'filtered_d' elixh_score <- filtered_d %>% classify_elixhauser(icdcodes=CODE1) %>% sum_score(score_AHRQ,score_van_Walraven) head(elixh_score) }