Learn R Programming

scar (version 0.2-2)

plot.scar: Plot components of a "scar" object

Description

This function takes a fitted scar object produced by scar and plots the component functions that make it up, on the scale of the additive predictors.

Usage

# S3 method for scar
plot(x, whichplot = 1:d, addp = TRUE, ...)

Arguments

x

A fitted scar object produced by scar.

whichplot

A numeric vector indicates the required plots.

addp

A logical scalar that indicates whether the data points should be plotted as circles on the fitted curves of each component.

...

Other arguments passed to plot.

Details

A plot is produced for each additive component in the fitted scar object. Each function is plotted in the range of the observed covariates, with the identifiability condition satisfied (see Details of scar).

It can be invoked by calling "plot(x)" for an object x of the scar class, or directly by calling "plot.scar(x)" regardless of the class of the object.

See Also

scar, predict.scar, plot.scair

Examples

Run this code
# NOT RUN {
## See examples for the function scar
# }

Run the code above in your browser using DataLab