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

View source: R/plot.scar.R

plot.scarR Documentation

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

Author(s)

Yining Chen and Richard Samworth

See Also

scar, predict.scar, plot.scair

Examples

## See examples for the function scar

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