Empirical Sample Complexity Bounds
Overview
Provides tools for estimating empirical sample complexity bounds for supervised learning tasks. The package supports simulation-based estimates of generalization curves, parametric extrapolation of empirical sample complexity bounds, theoretical bounds based on Vapnik-Chervonenkis dimension, and optional monotone Gaussian process extrapolation for users who install the external 'cmdstanr' workflow. For more details, see Carter and Choi (2024) doi:10.31219/osf.io/evrcj.
- Adds optional monotone Gaussian process extrapolation using
cmdstanr. - Moves packaged Stan source files under
inst/stan. - Removes the hard dependency on
caretfor binary classification metrics. - Improves CRAN compatibility for documentation, imports, S3 methods, and no-crossing summary/plot behavior.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 21 (1 internal)includes a package overview page
- Examples that run
- 33%2 run in a plain check · 4 hold no code
- Exported functions with examples
- 42%
- Documented parameters
- 88%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/pjesscarter/scr on 2026-10-21.
Dependencies
Installing scR adds 72 packages (37 with compiled code, 65 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.7.0Latest2026-06-23 · current release · diff ↗ ·
removed 1 export
plot_accuracyadded 6 exports
conduct_interpolation, create_scb_model, create_scb_prediction, fit_gp_scb_curve, interpolate_scb, interpolate_scb_gp - RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.4.02024-12-23 · diff ↗
- 0.3.02024-12-18 · diff ↗
- 0.2.02024-12-16 · diff ↗
- 0.1.02024-12-02
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-12-02
- Total releases
- 5 / 2 yrs
- License
- MIT + file LICENSE OSI
- Additional repositories
- stan-dev.r-universe.dev
- Minimum R
- ≥ 4.1.0
- Download size
- 34 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("scR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.