Print function for scout

Share:

Description

A function to print CV output for scout

Usage

1
2
## S3 method for class 'cvobject'
print(x,...)

Arguments

x

The results of a call to the "cv.scout" function.

...

Additional arguments; ignored.

Author(s)

Daniela M. Witten and Robert Tibshirani

References

Witten, DM and Tibshirani, R (2008) Covariance-regularized regression and classification for high-dimensional problems. Journal of the Royal Statistical Society, Series B 71(3): 615-636.

See Also

scout, cv.scout

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(lars)
data(diabetes)
attach(diabetes)
# Split data into training and test set
training <- sample(nrow(x2),floor(nrow(x2)/2))
xtrain <- x2[training,]
ytrain <- y[training]
# Done splitting data into training and test set
# Do cross-validation to determine best tuning parameter values for Scout(1,1)
## Not run: cv.out <- cv.scout(xtrain,ytrain,p1=1,p2=1, lam1s=seq(0.001,0.1), K=4)
## Not run: print(cv.out)
# Done cross-validation
detach(diabetes)