cv.ccglmreg | R Documentation |
Does k-fold cross-validation for ccglmreg, produces a plot,
and returns cross-validated log-likelihood values for lambda
## S3 method for class 'formula' cv.ccglmreg(formula, data, weights, offset=NULL, ...) ## S3 method for class 'matrix' cv.ccglmreg(x, y, weights, offset=NULL, ...) ## Default S3 method: cv.ccglmreg(x, ...) ## S3 method for class 'cv.ccglmreg' plot(x,se=TRUE,ylab=NULL, main=NULL, width=0.02, col="darkgrey", ...) ## S3 method for class 'cv.ccglmreg' coef(object,which=object$lambda.which, ...)
formula |
symbolic description of the model, see details. |
data |
argument controlling formula processing
via |
x |
|
y |
response |
weights |
Observation weights; defaults to 1 per observation |
offset |
Not implemented yet |
object |
object of |
which |
Indices of the penalty parameter |
se |
logical value, if |
ylab |
ylab on y-axis |
main |
title of plot |
width |
width of lines |
col |
color of standard error curve |
... |
Other arguments that can be passed to |
The function runs ccglmreg
nfolds
+1 times; the
first to compute the lambda
sequence, and then to
compute the fit with each of the folds omitted. The error or the loss value is
accumulated, and the average value and standard deviation over the
folds is computed. Note that cv.ccglmreg
can be used to search for
values for alpha
: it is required to call cv.ccglmreg
with a fixed vector foldid
for different values of alpha
.
an object of class "cv.ccglmreg"
is returned, which is a
list with the ingredients of the cross-validation fit.
fit |
a fitted ccglmreg object for the full data. |
residmat |
matrix of log-likelihood values with row values for |
bic |
matrix of BIC values with row values for |
cv |
The mean cross-validated log-likelihood values - a vector of length
|
cv.error |
estimate of standard error of |
foldid |
an optional vector of values between 1 and |
lambda |
a vector of |
lambda.which |
index of |
lambda.optim |
value of |
Zhu Wang <wangz1@uthscsa.edu>
Zhu Wang (2020) Unified Robust Estimation, arXiv e-prints, https://arxiv.org/abs/2010.02848
ccglmreg
and plot
, predict
, and coef
methods for "cv.ccglmreg"
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.