Learn R Programming

plus (version 1.0)

print.plus: Print plus() steps when predictors are added or removed.

Description

Print plus steps when predictors are added or removed, beginning with a description of the method such as LASSO, MC+ or SCAD.

Usage

"print"(x, print.moves = 20, ...)

Arguments

x
a plus object
print.moves
the number of lines printed. Default is 20.
...
Additonal arguments for generic methods

Value

Details

When a predictor is added or removed in the solution path, print one line providing the step number, the action, and the predicor involved.

References

Zhang, C.-H. (2010). Nearly unbiased variable selection under minimax concave penalty. Annals of Statistics 38, 894-942.

Examples

Run this code
data(sp500)
attach(sp500)

x <- sp500.percent[,3: (dim(sp500.percent)[2])] 
y <- sp500.percent[,1]

object <- plus(x,y,method="mc+")
print(object, print.moves=30)
detach(sp500)

Run the code above in your browser using DataLab