plot.llCV {grpCox} | R Documentation |
Plot the cross-validation curve produced by cv.grpCox or cv.grpCoxOverlap
Description
Plots the cross-validation curve, and upper and lower standard deviation curves, as a function of the lambda values used.
Usage
## S3 method for class 'llCV'
plot(x,...)
Arguments
x |
fitted cv.grpCox or cv.grpCoxOverlap object |
... |
further arguments to plot |
Details
A plot is produced, and nothing is returned.
Value
No return value.
Author(s)
Xuan Dang <xuandang11289@gmail.com>
Examples
set.seed(200)
N <- 50
p <- 9
x <- matrix(rnorm(N * p), nrow = N)
beta <- c(.65,.65,0,0,.65,.65,0,.65,0)
hx <- exp(x %*% beta)
ty <- rexp(N,hx)
tcens <- 1 - rbinom(n=N, prob = 0.2, size = 1)
y <- data.frame(illt=ty, ills=tcens)
names(y) <- c("time", "status")
g <- c(1,1,2,2,3,3,2,3,2)
m <- c(sqrt(2),sqrt(4),sqrt(3))
cvfit <- cv.grpCox(x,y,g,m,penalty="glasso")
plot.llCV(cvfit)
[Package grpCox version 1.0.2 Index]