Other packages > Find by keyword >

cramR  

Cram Method for Efficient Simultaneous Learning and Evaluation
View on CRAN: Click here


Download and install cramR package within the R console
Install from CRAN:
install.packages("cramR")

Install from Github:
library("remotes")
install_github("cran/cramR")

Install by package version:
library("remotes")
install_version("cramR", "0.1.1")



Attach the package and use:
library("cramR")
Maintained by
Yanis Vandecasteele
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2025-05-14
Latest Update: 2025-05-14
Description:
Performs the Cram method, a general and efficient approach to simultaneous learning and evaluation using a generic machine learning algorithm. In a single pass of batched data, the proposed method repeatedly trains a machine learning algorithm and tests its empirical performance. Because it utilizes the entire sample for both learning and evaluation, cramming is significantly more data-efficient than sample-splitting. Unlike cross-validation, Cram evaluates the final learned model directly, providing sharper inference aligned with real-world deployment. The method naturally applies to both policy learning and contextual bandits, where decisions are based on individual features to maximize outcomes. The package includes cram_policy() for learning and evaluating individualized binary treatment rules, cram_ml() to train and assess the population-level performance of machine learning models, and cram_bandit() for on-policy evaluation of contextual bandit algorithms. For all three functions, the package provides estimates of the average outcome that would result if the model were deployed, along with standard errors and confidence intervals for these estimates. Details of the method are described in Jia, Imai, and Li (2024) <https://www.hbs.edu/ris/Publication%20Files/2403.07031v1_a83462e0-145b-4675-99d5-9754aa65d786.pdf> and Jia et al. (2025) <doi:10.48550/arXiv.2403.07031>.
How to cite:
Yanis Vandecasteele (2025). cramR: Cram Method for Efficient Simultaneous Learning and Evaluation. R package version 0.1.1, https://cran.r-project.org/web/packages/cramR. Accessed 07 Mar. 2026.
Previous versions and publish date:
0.1.0 (2025-05-14 10:00)
Other packages that cited cramR R package
View cramR citation profile
Other R packages that cramR depends, imports, suggests or enhances
Complete documentation for cramR
Functions, R codes and Examples using the cramR R package
Full cramR package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

RobPer  
Robust Periodogram and Periodicity Detection Methods
Calculates periodograms based on (robustly) fitting periodic functions to light curves (irregularly ...
Download / Learn more Package Citations See dependency  
factoextra  
Extract and Visualize the Results of Multivariate Data Analyses
Provides some easy-to-use functions to extract and visualize the output of multivariate data analys ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
momentfit  
Methods of Moments
Several classes for moment-based models are defined. The classes are defined for moment conditions d ...
Download / Learn more Package Citations See dependency  
didrooRFM  
Compute Recency Frequency Monetary Scores for your Customer Data
This hosts the findRFM function which generates RFM scores on a 1-5 point scale for customer transa ...
Download / Learn more Package Citations See dependency  
prepdat  
Preparing Experimental Data for Statistical Analysis
Prepares data for statistical analysis (e.g., analysis of variance ;ANOVA) by enabling the user to ...
Download / Learn more Package Citations See dependency  

26,270

R Packages

223,360

Dependencies

70,376

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA