erri_sensitivity: Weight-Sensitivity Analysis for ERRI

View source: R/sensitivity.R

erri_sensitivityR Documentation

Weight-Sensitivity Analysis for ERRI

Description

Generates random non-negative weights on the simplex and recalculates the index and rank of each unit.

Usage

erri_sensitivity(object, R = 1000L, seed = NULL)

Arguments

object

An object returned by erri().

R

Number of random weight vectors.

seed

Optional integer seed.

Value

A data frame containing sampled weights, indices, and ranks.

Examples

fit <- erri(erri_example_data(), "year", "income", 2020, "region")
sens <- erri_sensitivity(fit, R = 100, seed = 3)
head(sens)

ERRI documentation built on Sept. 28, 2026, 5:08 p.m.