View source: R/crossvalidation.R
mstop.validateFDboost | R Documentation |
Methods for objects that are fitted to determine the optimal mstop and the prediction error of a model fitted by FDboost.
## S3 method for class 'validateFDboost'
mstop(object, riskopt = c("mean", "median"), ...)
## S3 method for class 'validateFDboost'
print(x, ...)
## S3 method for class 'validateFDboost'
plot(
x,
riskopt = c("mean", "median"),
ylab = attr(x, "risk"),
xlab = "Number of boosting iterations",
ylim = range(x$oobrisk),
which = 1,
modObject = NULL,
predictNA = FALSE,
names.arg = NULL,
ask = TRUE,
...
)
plotPredCoef(
x,
which = NULL,
pers = TRUE,
commonRange = TRUE,
showNumbers = FALSE,
showQuantiles = TRUE,
ask = TRUE,
terms = TRUE,
probs = c(0.25, 0.5, 0.75),
ylim = NULL,
...
)
object |
object of class |
riskopt |
how the risk is minimized to obtain the optimal stopping iteration; defaults to the mean, can be changed to the median. |
... |
additional arguments passed to callies. |
x |
an object of class |
ylab |
label for y-axis |
xlab |
label for x-axis |
ylim |
values for limits of y-axis |
which |
In the case of |
modObject |
if the original model object of class |
predictNA |
should missing values in the response be predicted? Defaults to |
names.arg |
names of the observed curves |
ask |
defaults to |
pers |
plot coefficient surfaces as persp-plots? Defaults to |
commonRange, |
plot predicted coefficients on a common range, defaults to |
showNumbers |
show number of curve in plot of predicted coefficients, defaults to |
showQuantiles |
plot the 0.05 and the 0.95 Quantile of coefficients in 1-dim effects. |
terms |
logical, defaults to |
probs |
vector of quantiles to be used in the plotting of 2-dimensional coefficients surfaces,
defaults to |
The function mstop.validateFDboost
extracts the optimal mstop by minimizing the
mean (or the median) risk.
plot.validateFDboost
plots cross-validated risk, RMSE, MRD, measured and predicted values
and residuals as determined by validateFDboost
. The function plotPredCoef
plots the
coefficients that were estimated in the folds - only possible if the argument getCoefCV is TRUE
in
the call to validateFDboost
.
No return value (plot method) or the object itself (print method)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.