Learn R Programming

scar (version 0.2-2)

plot.scair: Plot additive index components of a "scair" object

Description

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

Usage

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

Arguments

x

A fitted scair object produced by scair.

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 index component function in the fitted scair object. Each function is plotted in the range of the observed indices, with the identifiability condition satisfied (see Details of scar and scair).

See Also

scair, predict.scair, plot.scar

Examples

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

Run the code above in your browser using DataLab