plot_sobol_jansen: Plotting Sobol-Jansen Values Barplot

View source: R/plotting_utils.R

plot_sobol_jansenR Documentation

Plotting Sobol-Jansen Values Barplot

Description

The plot_sobol_jansen() function produces bar plots for Sobol-Jansen analysis results, offering a global sensitivity perspective based on variance decomposition. This methodology is particularly valuable for identifying higher-order effects and complex interactions between variables in model predictions.

Usage

plot_sobol_jansen(analysis_object, show_table = FALSE)

Arguments

analysis_object

Fitted analysis_object with 'sensitivity_analysis(methods = "Sobol_Jansen")'.

show_table

Boolean. Whether to print Sobol-Jansen results table.

Value

analysis_object

Examples

# Note: For obtaining the Sobol_Jansen plot the user needs to complete till sensitivity_analysis( )
# function of the MLwrap pipeline using the Sobol_Jansen method.



wrap_object <- preprocessing(df = sim_data,
                             formula = psych_well ~ depression + emot_intel + resilience,
                             task = "regression")
wrap_object <- build_model(wrap_object, "Random Forest")
wrap_object <- fine_tuning(wrap_object, "Bayesian Optimization")
wrap_object <- sensitivity_analysis(wrap_object, methods = "Sobol_Jansen")

# And then, you can obtain the Sobol_Jansen plot.

plot_sobol_jansen(wrap_object)




MLwrap documentation built on Aug. 8, 2025, 6:43 p.m.