Computes a weighted composite Water-Energy-Food-Nutrient-Carbon nexus sustainability index from normalized dimension scores.

nexus_index(
  water_score,
  energy_score,
  food_score,
  nutrient_score,
  carbon_score,
  weights = rep(0.2, 5),
  verbose = TRUE
)

Arguments

water_score

Numeric vector. Water performance score (0 to 1).

energy_score

Numeric vector. Energy performance score (0 to 1).

food_score

Numeric vector. Food productivity score (0 to 1).

nutrient_score

Numeric vector. Nutrient use efficiency score (0 to 1).

carbon_score

Numeric vector. Carbon performance score (0 to 1), where higher values indicate lower carbon footprint.

weights

Numeric vector of length 5. Weights for Water, Energy, Food, Nutrient, and Carbon dimensions. Must sum to 1. Default is equal weighting (0.2 each).

verbose

Logical. If TRUE, prints informational messages. Default TRUE.

Value

Numeric vector. Composite nexus index on a 0 to 1 scale, where higher values indicate better overall sustainability.

Details

$$NI = w_W S_W + w_E S_E + w_F S_F + w_N S_N + w_C S_C$$

Examples

# \donttest{
nexus_index(water_score = c(0.85, 0.72), energy_score = c(0.70, 0.80),
            food_score = c(0.90, 0.85), nutrient_score = c(0.65, 0.70),
            carbon_score = c(0.80, 0.60))
#> Nexus index computed: 2 values.
#> [1] 0.780 0.734

# }