plot.clogitLasso {clogitLasso}R Documentation

Plot coefficients from a clogitLasso object

Description

Plot the parameter profile associated clogitLasso object

Usage

## S3 method for class 'clogitLasso'
plot(x, logLambda = TRUE, add.legend = FALSE,
  add.labels = TRUE, lty = 1:ncol(x$beta), col = 1:ncol(x$beta), ...)

Arguments

x

an objet of type clogitLasso

logLambda

Set to TRUE if the horizontal axis is on log scale

add.legend

Take the value TRUE if legend should be printed in top right hand corner

add.labels

set to TRUE if labels are to be added to curves at leftmost side

lty

Same to lty parameter of plot function

col

Same to col parameter of plot function

...

additional arguments to plot function

Author(s)

Marta Avalos, Helene Pouyes, Marius Kwemou and Binbin Xu

References

Avalos, M., Pouyes, H., Grandvalet, Y., Orriols, L., & Lagarde, E. (2015). Sparse conditional logistic regression for analyzing large-scale matched data from epidemiological studies: a simple algorithm. BMC bioinformatics, 16(6), S1. doi: 10.1186/1471-2105-16-S6-S1.

Examples

## Not run: 
 # generate data
 y <- rep(c(1,0), 100)
 X <- matrix (rnorm(20000, 0, 1), ncol = 100) # pure noise
 strata <- sort(rep(1:100, 2))

 fitLasso <- clogitLasso(X,y,strata,log=TRUE)
 # plot
 plot(fitLasso)

## End(Not run)

[Package clogitLasso version 1.1 Index]