plot.scar {scar} | R 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 |
whichplot |
A numeric vector indicates the required plots. |
addp |
A |
... |
Other arguments passed to |
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