Package: nestedcv 0.8.2
nestedcv: Nested Cross-Validation with 'glmnet' and 'caret'
Implements nested k*l-fold cross-validation for lasso and elastic-net regularised linear models via the 'glmnet' package and other machine learning models via the 'caret' package <doi:10.1093/bioadv/vbad048>. Cross-validation of 'glmnet' alpha mixing parameter and embedded fast filter functions for feature selection are provided. Described as double cross-validation by Stone (1977) <doi:10.1111/j.2517-6161.1977.tb01603.x>. Also implemented is a method using outer CV to measure unbiased model performance metrics when fitting Bayesian linear and logistic regression shrinkage models using the horseshoe prior over parameters to encourage a sparse model as described by Piironen & Vehtari (2017) <doi:10.1214/17-EJS1337SI>.
Authors:
nestedcv_0.8.2.tar.gz
nestedcv_0.8.2.zip(r-4.7)nestedcv_0.8.2.zip(r-4.6)nestedcv_0.8.2.zip(r-4.5)
nestedcv_0.8.2.tgz(r-4.6-any)nestedcv_0.8.2.tgz(r-4.5-any)
nestedcv_0.8.2.tar.gz(r-4.7-any)nestedcv_0.8.2.tar.gz(r-4.6-any)
nestedcv_0.8.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
nestedcv/json (API)
NEWS
| # Install 'nestedcv' in R: |
| install.packages('nestedcv', repos = c('https://cranhaven.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/myles-lewis/nestedcv/issues
Last updated from:0068798e7d (on package/nestedcv). Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 267 | ||
| source / vignettes | OK | 361 | ||
| linux-release-x86_64 | OK | 229 | ||
| macos-release-arm64 | OK | 136 | ||
| macos-oldrel-arm64 | OK | 164 | ||
| windows-devel | OK | 172 | ||
| windows-release | OK | 180 | ||
| windows-oldrel | OK | 179 | ||
| wasm-release | OK | 166 |
Exports:anova_filterbarplot_var_stabilitybin_stat_filterboot_anovaboot_correlboot_filterboot_lmboot_ttestboot_wilcoxonboruta_filterboxplot_expressionclass_balanceclass_stat_filtercollinearcombo_filtercor_stat_filtercorrel_filtercorrels2cv_coefcv_varImpcva.glmnetglmnet_coefsglmnet_filterhist_var_ranksinnercv_predsinnercv_rocinnercv_summarylm_filtermccmcc_multimetricsmodel.hsstannestcv.glmnetnestcv.SuperLearnernestcv.trainone_hotoutercvplot_alphasplot_caretplot_lambdasplot_shap_barplot_shap_beeswarmplot_var_ranksplot_var_stabilityplot_varImppls_filterprcpred_nestcv_glmnetpred_nestcv_glmnet_classpred_SuperLearnerpred_trainpred_train_classpredSummaryrandomsampleranger_filterrelieff_filterrepeatcvrepeatfoldsrf_filterslimsmotestat_filtersummary_varssupervisedPCAtrain_predstrain_roctrain_summaryttest_filtertxtProgressBar2var_directionvar_stabilityweightwilcoxon_filter
Dependencies:bitopscaretcaToolsclasscliclockcodetoolscpp11data.tablediagramdigestdoParalleldplyre1071farverforeachfuturefuture.applygenericsggplot2glmnetglobalsgluegowergplotsgtablegtoolshardhatipredisobanditeratorsKernSmoothlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixmatrixStatsmatrixTestsModelMetricsnlmennetnumDerivparallellypillarpkgconfigplyrpROCprodlimprogressrproxypurrrR6RColorBrewerRcppRcppArmadilloRcppEigenRcppParallelrecipesreshape2RfastRhpcBLASctlrlangROCRrpartS7scalesshapesparsevctrsSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetzdbutf8vctrsviridisLitewithrzigg
Explaining nestedcv models with Shapley values
Rendered fromnestedcv_shap.Rmdusingknitr::rmarkdownon Jun 10 2026.Last update: 2026-06-10
Started: 2026-06-10
nestedcv
Rendered fromnestedcv.Rmdusingknitr::rmarkdownon Jun 10 2026.Last update: 2026-06-10
Started: 2026-06-10
Using outercv with Bayesian shrinkage models
Rendered fromnestedcv_hsstan.Rmdusingknitr::rmarkdownon Jun 10 2026.Last update: 2026-06-10
Started: 2026-06-10
