plot.cggd {cggd}R Documentation

Plot method for cggd objects

Description

Produce a plot of a cggd fit. The default is a complete coefficient path.

Usage

plot.cggd(x, steps=5, breaks = TRUE, first_k=1,last_k=Inf, xvar=c("step","t"),omit.zeros = TRUE, eps = 1e-10, ...)

Arguments

x cggd object
steps Number of steps to sample coefficients between each model iteration.
breaks If TRUE, then vertical lines are drawn at each break point in the piecewise linear coefficient paths
first_k The starting k, model iteration, to plot from.
last_k The final k, model iteration, to plot from.
xvar The type of x variable against which to plot. xvar=step plots against iteration steps of the model (default). xvar=t plots against the time along the coefficient path.
omit.zeros When the number of variables is much greater than the number of observations, many coefficients will never be nonzero; this logical (default TRUE) avoids plotting these zero coefficents
eps Definition of zero above, default is 1e-10
... Additonal arguments for generic plot. Can be used to set xlims, change colors, line widths, etc

Value

NULL

Author(s)

Cun-Hui Zhang and Ofer Melnik

References

Cun-Hui Zhang (2007) "Continuous Generalized Gradient Descent" Journal of Computational and Graphical Statistics ; see also http://stat.rutgers.edu/~cunhui/software/CGGD.html.

Examples

data(housing)
attach(housing)
object <- cggd(x,y)
plot(object)
detach(housing)

[Package cggd version 0.8 Index]