Evaluate a scenario
sdm_evaluate_scenario.RdSends a scenario to the SDM API and returns the consequence matrix and radar chart data. The consequence matrix is the core output – each cell is a satisfaction score (0–100) showing how well an alternative meets a group's priorities.
Arguments
- scenario
An
sdm_scenario()object.- dry_run
Logical. If TRUE, return the request without sending.
- verbosity
Integer. Verbosity level (0 = silent).
Value
A list with two elements:
matrixData frame. Rows are alternatives, columns are
alternative(name) plus one numeric column per stakeholder group containing satisfaction scores (0–100). Higher scores mean the group is better served.radarData frame in long format with columns
alternative,group, andscore. Same data as the matrix, reshaped for plotting radar/spider charts.
Examples
if (FALSE) { # \dontrun{
results <- sdm_evaluate_scenario(scn)
# Consequence matrix
results$matrix
#> alternative Opportunity Hunter Conservation Advocate
#> 1 Status Quo 72.5 31.2
#> 2 Reduce Harvest 38.1 85.7
# Radar chart data (long format)
results$radar
#> alternative group score
#> 1 Status Quo Opportunity Hunter 72.5
#> 2 Reduce Harvest Opportunity Hunter 38.1
#> ...
} # }