Learn R Programming

CIpostSelect (version 0.2.1)

print.CIps: Print method for the CIps class

Description

It provides information on the selected variables, the estimated confidence intervals, and the coefficients of these selected variables.

Usage

# S3 method for CIps
print(x, ...)

Value

No return value, called for its side effects, which is printing the object to the console.

Arguments

x

An object of class CIps.

...

Additional arguments to be passed to the print function.

Examples

Run this code
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)
# print
print(cips)

# \donttest{
# 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)
# print
print(cips)
# }

Run the code above in your browser using DataLab