plot.cband {mixreg}R Documentation

Plot confidence bands for a mixture of regressions.

Description

Plots the fitted lines and confidence and prediction bands as calculated by cband, for a mixture of regressions on one variable.

Usage

plot.cband(x, cbands=TRUE, pbands=TRUE, xlab=NULL, ylab=NULL,
           main=NULL, ...)

Arguments

x An object specifying the fitted lines and confidence and prediction bands, as produced by cband.
cbands Logical argument specifying whether to plot the confidence bands.
pbands Logical argument specifying whether to plot the prediction bands.
xlab Character string specifying a label for the x-axis; defaults to "x".
ylab Character string specifying a label for the y-axis; defaults to "y".
main Character string specifying a title for the plot; if it is not specified a default title is formed. If no title at all is desired, specify main="".
... Optional extra arguments; not currently used.

Details

This function is a "method" for plot. Note that a simple plot of the fit may be produced by specifying both cbands=FALSE and pbands=FALSE.

Side Effects

A plot is produced in whatever device is currently open.

See Also

bootcomp, cband, covmix, mixreg, plot.mresid, qq.mix, resid.mix

Examples

#See mixreg for examples.

[Package mixreg version 0.0-2 Index]