plot.glmreg {mpath} | R Documentation |
plot coefficients from a "glmreg" object
Description
Produces a coefficient profile plot of the coefficient paths for a
fitted "glmreg"
object.
Usage
## S3 method for class 'glmreg'
plot(x, xvar = c("norm", "lambda", "dev"), label = FALSE, shade=TRUE, ...)
Arguments
x |
fitted |
xvar |
What is on the X-axis. |
label |
If |
shade |
Should nonconvex region be shaded? Default is TRUE. Code developed for all |
... |
Other graphical parameters to plot |
Details
A coefficient profile plot is produced.
Author(s)
Zhu Wang zwang145@uthsc.edu
See Also
glmreg
, and print
, predict
and coef
methods.
Examples
x=matrix(rnorm(100*20),100,20)
y=rnorm(100)
fit1=glmreg(x,y)
plot(fit1)
plot(fit1,xvar="lambda",label=TRUE)
[Package mpath version 0.4-2.26 Index]