Last chance! 50% off unlimited learning
Sale ends in
Functions and classes to manage outputs of two-fold
cross-validation for one (class randxval
) or several (class
krandxval
) statistics
as.krandxval(RMSEc, RMSEv, quantiles = c(0.25, 0.75), names =
colnames(RMSEc), call = match.call())
# S3 method for krandxval
print(x, ...)
as.randxval(RMSEc, RMSEv, quantiles = c(0.25, 0.75), call =
match.call())
# S3 method for randxval
print(x, ...)
a vector (class randxval
) or a matrix (class
krandxval
) with the root-mean-square error of calibration
(statistics as columns and repetions as rows)
a vector (class randxval
) or a matrix (class
krandxval
) with the root-mean-square error of validation
(statistics as columns and repetions as rows)
a vector indicating the lower and upper quantiles to compute
a vector of names for the statistics
the matching call
an object of class randxval
or krandxval
other arguments to be passed to methods
an object of class randxval
or krandxval
Stone M. (1974) Cross-validatory choice and assessment of statistical predictions. Journal of the Royal Statistical Society, 36, 111-147
# NOT RUN {
## an example corresponding to 10 statistics and 100 repetitions
cv <- as.krandxval(RMSEc = matrix(rnorm(1000), nrow = 100), RMSEv =
matrix(rnorm(1000, mean = 1), nrow = 100))
cv
if(adegraphicsLoaded())
plot(cv)
# }
Run the code above in your browser using DataLab