plot.glmreg: plot coefficients from a "glmreg" object

View source: R/plot.glmreg.R

plot.glmregR 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 "glmreg" model

xvar

What is on the X-axis. "norm" plots against the L1-norm of the coefficients, "lambda" against the log-lambda sequence, and "dev" against the percent deviance explained.

label

If TRUE, label the curves with variable sequence numbers.

shade

Should nonconvex region be shaded? Default is TRUE. Code developed for all weights=1 only

...

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)

mpath documentation built on Jan. 7, 2023, 1:17 a.m.