plot_selection: Visualization of the selected variables

View source: R/plot_selection.R

plot_selectionR Documentation

Visualization of the selected variables

Description

This function produces a histogram of the variable selection percentage for each variable on which f depends. It also displays the results obtained with the AIC.

Usage

plot_selection(object)

Arguments

object

output obtained with absorber().

Value

This function produces a ggplot2::ggplot() plot to visualize the variables selected with absorber().

Examples

# --- Loading values of x --- #
data('x_obs')
# --- Loading values of the corresponding y --- #
data('y_obs')
x_trunc = x_obs[1:70,,drop=FALSE]
y_trunc = y_obs[1:70]

# --- Variable selection of f1 --- #
res = absorber(x=x_trunc, y=y_trunc, M = 3)
plot_selection(res)

absorber documentation built on May 29, 2024, 10:58 a.m.