Displays a plot of the fitted additive smooth components of an
gamlps object. The routine can also be used to
print a table of point and set estimates of an additive smooth term for a
user-specified grid of values.
# S3 method for gamlps
plot(x, xp, smoo.index, cred.int = 0.95, plot.cred = TRUE,
np = 100, fit.col = "blue", shade.col = "gray75", show.plot = TRUE,
show.info = TRUE, ...)If xp is unspecified (the default), the routine will only
return a plot of the estimated smooth curve. Otherwise, it provides a
list with the following components:
The chosen points on which to compute the smooth fit.
The estimated smooth fit at points specified in xp.
The lower bound of the pointwise credible interval for the
smooth additive function at points specified in xp.
The upper bound of the pointwise credible interval for the
smooth additive function at points specified in xp.
The chosen level to compute credible intervals.
The index of the smooth function.
An object of class gamlps.
A numeric vector of grid values on which to compute a point estimate
and pointwise credible interval for the smooth function specified in
smoo.index. The components of xp must be within the range
of the observed covariate values for the corresponding smooth function.
Results will be displayed in a table.
The index of the smooth function. For instance
smoo.index = 2 refers to the second smooth function specified in
the formula of the amlps routine.
The level of the pointwise credible interval to be
computed for the smooth additive term. Default is 0.95.
Logical. Should the credible intervals be plotted?
Default is TRUE.
The number of points used to construct the plot of the smooth additive function. Default is 100 and allowed values are between 20 and 200.
The color of the fitted curve.
The shading color for the credible intervals.
Logical. Should the plot be displayed? Default is
TRUE.
Logical. Should the table of point and set estimates of
the smooth function on the specified xp values be displayed? Default
is TRUE.
Further arguments to be passed to plot.
Oswaldo Gressani oswaldo_gressani@hotmail.fr.
Produces a plot of a smooth additive term fitted with the
gamlps function. On the y-axis, the estimated effective
dimension of the smooth term is also displayed. At the bottom of each
plot, vertical ticks indicate the location of the covariate values. The
labels on the x-axis correspond to the covariate name associated to the
smooth term.
gamlps, gamlps.object,
print.gamlps