Learn R Programming

msda (version 1.0.3)

plot.msda: Plot coefficients from a "msda" object

Description

Produces a coefficient profile plot of the coefficient paths for a fitted msda object.

Usage

# S3 method for msda
plot(x, xvar = c("norm", "lambda"), ...)

Arguments

x

fitted msda model

xvar

the variable on the X-axis. The option "norm" plots the coefficients against the L1-norm of the coefficients, and the option "lambda" plots the coefficient against the log-lambda sequence.

...

other graphical parameters to plot

Author

Qing Mai <mai@stat.fsu.edu>, Yi Yang <yi.yang6@mcgill.ca>, Hui Zou <hzou@stat.umn.edu>
Maintainer: Yi Yang <yi.yang6@mcgill.ca>

Details

A coefficient profile plot is produced.

References

Mai, Q.*, Yang, Y.*, and Zou, H. (2014), "Multiclass Sparse Discriminant Analysis." Submitted to Journal of the American Statistical Association. (* co-first author)

URL: https://github.com/emeryyi/msda

Examples

Run this code
data(GDS1615)
x<-GDS1615$x
y<-GDS1615$y
obj <- msda(x = x, y = y)
plot(obj)

Run the code above in your browser using DataLab