This package fits pretrained generalized linear models for: (1) data with grouped observations, (2) data without grouped observations, but with multinomial responses, (3) data with multiple Gaussian responses and (4) time series data (data with repeated measurements over time).
Documentation and examples are available as vignettes within this package, and can be accessed through the “Articles” tab on this page. The vignettes also include examples of pretraining for settings not yet supported by this package, including conditional average treatment effect estimation and unsupervised pretraining.
Details of pretraining may be found in Craig et al. (2026).
All model fitting in this package is done with cv.glmnet, and our syntax closely follows that of the glmnet package (2010).
Installation
To install this package, we recommend following these instructions.
References
Craig et al. “Pretraining and the lasso.” Journal of the Royal Statistical Society Series B: Statistical Methodology 88.1 (2026): 261-281.
Friedman, Hastie, and Tibshirani. 2010. “Regularization Paths for Generalized Linear Models via Coordinate Descent.” Journal of Statistical Software, Articles 33 (1): 1–22.