Learn R Programming

CIpostSelect (version 0.2.1)

summary.lmps: Summary function for our lmps object

Description

Summary function for our lmps object

Usage

# S3 method for lmps
summary(object, ...)

Value

A summary of our lmps object

Arguments

object

Our lmps object

...

Other arguments ignored (for compatibility with generic)

Details

This function provides a summary of the data collected during the application of the lmps function. It summarizes how many times the most frequently selected model was chosen across our N divisions, as well as the selection frequency of variables in the different divisions. It can also provide the execution time of the lmps function, which may vary significantly depending on the chosen post-selection method and the dimensionality of our data.

Examples

Run this code
library(mlbench)
data("BostonHousing")
# lmps object
model = lmps(medv~., data = BostonHousing, method = "Lasso", N = 50)
summary(model)


# \donttest{
# lmps object
model = lmps(medv~., data = BostonHousing, method = "Lasso", N = 50, cores = 2)
summary(model)
# }

Run the code above in your browser using DataLab