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

Description Usage Arguments Details Value Author(s) References Examples

Description

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

Usage

1
2
## S3 method for class 'plus'
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

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.

Value

NULL

Author(s)

Cun-Hui Zhang and Ofer Melnik

References

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

Examples

1
2
3
4
5
6
7
8
9
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)

plus documentation built on May 2, 2019, 7:01 a.m.

Related to print.plus in plus...