plot_selection {absorber}R 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)

[Package absorber version 1.0 Index]