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

View source: R/plot.scair.R

plot.scairR Documentation

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 class '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).

Author(s)

Yining Chen and Richard Samworth

See Also

scair, predict.scair, plot.scar

Examples

## See examples for the function scair

scar documentation built on May 28, 2022, 1:22 a.m.