View source: R/plotting_utils.R
plot_sobol_jansen | R Documentation |
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.
plot_sobol_jansen(analysis_object, show_table = FALSE)
analysis_object |
Fitted analysis_object with 'sensitivity_analysis(methods = "Sobol_Jansen")'. |
show_table |
Boolean. Whether to print Sobol-Jansen results table. |
analysis_object
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.