Pretraining the Lasso

Implements lasso pretraining for generalized linear models for data with grouped observations; data without grouped observations, but with multinomial responses; data with multiple Gaussian responses; and data with repeated measurements over time. The method fits a lasso model to an initial dataset and then uses its support and coefficient values to guide model fitting for a related task, which can improve performance by leveraging larger datasets and preserve interpretability by identifying features which are generally shared, and which are task specific. See Craig et al. (2026) for details. Model fitting in this package is done with cv.glmnet() from the 'glmnet' package, and syntax closely follows that of 'glmnet' (Friedman, Hastie and Tibshirani (2010) ).


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ptLasso")

1.0.2 by Erin Craig, 8 hours ago


https://erincr.github.io/ptLasso/, https://doi.org/10.1093/jrsssb/qkaf050


Report a bug at https://github.com/erincr/ptLasso/issues


Browse source code at https://github.com/cran/ptLasso


Authors: Erin Craig [aut, cre, cph] (ORCID: , Rob Tibshirani [aut, cph]


Documentation:   PDF Manual  


GPL-2 license


Depends on ggplot2, glmnet, gridExtra, Matrix

Suggests knitr, rmarkdown, rpart, survival, xgboost, sparsepca, MASS, testthat


See at CRAN