plot_M_robust_ci: Visualize the percentage of outperforming units in robust...

View source: R/plot_M_robust_ci.R

plot_M_robust_ciR Documentation

Visualize the percentage of outperforming units in robust methods

Description

This function generates a plot showing the proportion of outperforming units (i.e., units with a score greater than 1) across varying subset sizes (M) used in robust Benefit of the Doubt (BoD) models. It helps to analyze how the choice of subset size impacts the number of outperforming units identified by the model.

Usage

plot_M_robust_ci(x,indic_col,method,mvector,B,dir, interval)

Arguments

x

A data.frame containing simple indicators.

indic_col

A numeric list indicating the positions of the simple indicators.

method

The method to be tested. Implemented methods are "rbod", "rbod", "rbod_mdir".

mvector

The vector of different elements in each of the bootstrapped samples to be tested.

B

The number of bootstrap replicates.

dir

Main direction. For example you can set the average rates of substitution.

interval

Desired probability for Student distribution [see function qt()]; default = 0.05.

Author(s)

Fusco E.

See Also

ci_rbod, ci_rbod_dir, ci_rbod_mdir

Examples

data(EU_NUTS1)
data_norm = normalise_ci(EU_NUTS1,c(2:3),polarity = c("POS","POS"), method=2)
plot_M_robust_ci(data_norm$ci_norm, c(1:2), method = "rbod", 
                 mvector = seq(5,25,5), B = 10)
plot_M_robust_ci(data_norm$ci_norm, c(1:2), method = "rbod_dir", 
                 mvector = seq(5,25,5), B = 10, dir=c(1,0.1))


data(BLI_2017)
plot_M_robust_ci(x = BLI_2017, indic_col = c(2:12), method = "rbod_mdir", 
                 mvector = seq(5,10,1), B = 10, interval = 0.05)

Compind documentation built on June 8, 2025, 11:08 a.m.