print.plus {plus}R Documentation

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

## 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. (2007). Penalized linear unbiased selection. Technical Report No. 2007-003. Department of Statistics, Rutgers University.

Examples

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)

[Package plus version 0.8 Index]