plot_selected_variables {bolasso} | R Documentation |
Plot selected variables from a bolasso
object.
Description
The method plots coefficient distributions for the selected covariates
in the bolasso
model. If there are more than 30 selected covariates,
this will plot the 30 selected covariates with the largest
absolute mean coefficient. The user can also plot coefficient distributions
for a specified subset of selected covariates.
Usage
plot_selected_variables(
x,
covariates = NULL,
threshold = 0.95,
method = c("vip", "qnt"),
...
)
Arguments
x |
An object of class bolasso or |
covariates |
A subset of the selected covariates to plot. This should be a
vector of covariate names either as strings or bare. E.g.
|
threshold |
A numeric between 0 and 1, specifying the variable selection threshold to use. |
method |
The variable selection method to use. The two valid options
are |
... |
Additional arguments to pass to |