R/summarize_scores.R
summarize_scores.Rd
This function serves as an example for how a risk score might be derived.
Assuming all assessments provided by riskmetric
are available in a
dataset, this function can be used to calculate a vector of risks.
summarize_scores(data, weights = NULL)
a tibble
of scored assessments whose column
names match those provided by riskmetric's pkg_assess
function.
an optional vector of non-negative weights to be assigned to each assessment.
a numeric vector of risk scores