plot_cdfpen {penalizedcdf}R Documentation

Plot coefficients or BIC from a "cdfpen" object

Description

Plot coefficient profile plot or BIC trend

Usage

plot_cdfpen(object,
            ...)

Arguments

object

Object to be plotted.

...

Other graphical parameters to plot.

Details

A graph showing the BIC trend or profile of coefficients is displayed.

Value

No return value

Author(s)

Daniele Cuntrera, Luigi Augugliaro, Vito Muggeo

Examples


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 

[Package penalizedcdf version 0.1.0 Index]