Description Usage Arguments Details Value References See Also Examples
View source: R/plotFunctions.R
Creates a plot to show the stability path for a particular variable in terms of how frequently it was chosen in stability selection.
1 2 3 4 5 6 7 | plotStability(
x,
outcome = 1,
s = c("simult", "split1", "split2"),
thresh = 0.5,
typeLegend = TRUE
)
|
x |
Output of |
outcome |
Character string or numeric value (in terms of columns in the dataset) to indicate which outcome to plot the stability path for. |
s |
Character string or numeric value. This indicates which stability
path to return a plot for. Either the first sample split |
thresh |
The selection threshold, which is represented as a horizontal red line on the plot. Defaults to .5 |
typeLegend |
Logical. If |
See Meinshausen & Buhlmann (2010) for details on stability selection. Cannot be used when the criterion for stability selection was set as cross-validation.
Plot of the stability path associated with a given outcome.
Meinshausen, N., & Buhlmann, P. (2010). Stability selection. Journal of the Royal Statistical Society: Series B (Statistical Methodology). 72, 417-423
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.