plot.FDboost | R Documentation |
Takes a fitted FDboost
-object produced by FDboost()
and
plots the fitted effects or the coefficient-functions/surfaces.
## S3 method for class 'FDboost'
plot(
x,
raw = FALSE,
rug = TRUE,
which = NULL,
includeOffset = TRUE,
ask = TRUE,
n1 = 40,
n2 = 40,
n3 = 20,
n4 = 11,
onlySelected = TRUE,
pers = FALSE,
commonRange = FALSE,
...
)
plotPredicted(
x,
subset = NULL,
posLegend = "topleft",
lwdObs = 1,
lwdPred = 1,
...
)
plotResiduals(x, subset = NULL, posLegend = "topleft", ...)
x |
a fitted |
raw |
logical defaults to |
rug |
when |
which |
a subset of base-learners to take into account for plotting. |
includeOffset |
logical, defaults to |
ask |
logical, defaults to |
n1 |
see below |
n2 |
see below |
n3 |
n1, n2, n3 give the number of grid-points for 1-/2-/3-dimensional smooth terms used in the marginal equidistant grids over the range of the covariates at which the estimated effects are evaluated. |
n4 |
gives the number of points for the third dimension in a 3-dimensional smooth term |
onlySelected, |
logical, defaults to |
pers |
logical, defaults to |
commonRange |
logical, defaults to |
... |
other arguments, passed to |
subset |
subset of the observed response curves and their predictions that is plotted. Per default all observations are plotted. |
posLegend |
location of the legend, if a legend is drawn automatically (only used in plotPredicted). The default is "topleft". |
lwdObs |
lwd of observed curves (only used in plotPredicted) |
lwdPred |
lwd of predicted curves (only used in plotPredicted) |
no return value (plot method)
FDboost
for the model fit and
coef.FDboost
for the calculation of the coefficient functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.