plot.CIps {CIpostSelect} | R Documentation |
Plot method for the CIps class
Description
It provides a ggplot graphic where the x-axis displays all the explanatory variables, with the confidence intervals of the selected variables shown in green and the coefficient estimates represented as red points.
Usage
## S3 method for class 'CIps'
plot(x, ...)
Arguments
x |
An object of class CIps. |
... |
Additional arguments to be passed to the plot function. |
Value
No return value, called for its side effects, which is plotting a graph.
Examples
library(mlbench)
data("BostonHousing")
# lmps object
model = lmps(medv~., data = BostonHousing, method = "Lasso", N = 50)
# CIps object
cips = CIps(model, vote = "coef", alpha = 0.05, s.vote_coef = 0.5)
# plot
plot(cips)
# lmps object
model = lmps(medv~., data = BostonHousing, method = "Lasso", N = 50, cores = 2)
# CIps object
cips = CIps(model, vote = "coef", alpha = 0.05, s.vote_coef = 0.5)
# plot
plot(cips)
[Package CIpostSelect version 0.2.1 Index]