Computes the SCI from pillar scores as a weighted sum scaled to 0–100, with decision band classification.
Usage
compute_sci(pillar_scores, config = sci_config_default())Arguments
- pillar_scores
A tibble from
compute_pillar_scores()with columnspillar,pillar_score,weight.- config
An
sci_configfromsci_config_default().
Value
A list of class "sci_result" with:
SCI: numeric 0–100band: character band classificationpillar_scores: the input pillar scores tibbleweights_used: named numeric vector of effective weights
Details
The SCI is computed as:
SCI = round(sum(pillar_score * weight) * 100, 1)
Pillars with NA scores are excluded from both the numerator and the
weight normalization denominator.
Examples
if (FALSE) { # \dontrun{
ps <- compute_pillar_scores(evidence)
result <- compute_sci(ps)
result$SCI
result$band
} # }