plot_cdfpen | R Documentation |
Plot coefficient profile plot or BIC trend
plot_cdfpen(object, ...)
object |
Object to be plotted. |
... |
Other graphical parameters to plot. |
A graph showing the BIC trend or profile of coefficients is displayed.
No return value
Daniele Cuntrera, Luigi Augugliaro, Vito Muggeo
p <- 10 n <- 100 X <- cbind(1, matrix(rnorm(n * p), n , p)) b.s <- c(1, rep(0, p)) b.s[sample(2:p, 3)] <- 1 y <- drop(crossprod(t(X), b.s)) out <- cdfPen(X = X, y = y) plot_cdfpen(out) #Coefficients' path ~ lambda plot_cdfpen(out, "l1") #Coefficients' path ~ L1 norm plot_cdfpen(out, "BIC") #BIC ~ lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.