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. (2024).
All model fitting in this package is done with cv.glmnet
, and our syntax closely follows that of the glmnet
package (2010).
Tutorials
For introductory YouTube tutorials and R Markdown examples, please visit the website for lasso pretraining.
Installation
To install this package, we recommend following these instructions.
References
Craig, Erin, Mert Pilanci, Thomas Le Menestrel, Balasubramanian Narasimhan, Manuel Rivas, Roozbeh Dehghannasiri, Julia Salzman, Jonathan Taylor, and Robert Tibshirani. “Pretraining and the Lasso.” arXiv preprint arXiv:2401.12911 (2024).
Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. 2010. “Regularization Paths for Generalized Linear Models via Coordinate Descent.” Journal of Statistical Software, Articles 33 (1): 1–22. https://doi.org/10.18637/jss.v033.i01.