{
  "_id": "6ae1e0dd8d250e7ad09ee31e",
  "Package": "ptLasso",
  "Type": "Package",
  "Title": "Pretraining the Lasso",
  "Description": "Implements lasso pretraining for generalized linear models\nfor data with grouped observations; data without grouped\nobservations, but with multinomial responses; data with\nmultiple Gaussian responses; and data with repeated\nmeasurements over time. The method fits a lasso model to an\ninitial dataset and then uses its support and coefficient\nvalues to guide model fitting for a related task, which can\nimprove performance by leveraging larger datasets and preserve\ninterpretability by identifying features which are generally\nshared, and which are task specific. See Craig et al. (2026)\n<doi:10.1093/jrsssb/qkaf050> for details. Model fitting in this\npackage is done with cv.glmnet() from the 'glmnet' package, and\nsyntax closely follows that of 'glmnet' (Friedman, Hastie and\nTibshirani (2010) <doi:10.18637/jss.v033.i01>).",
  "Version": "1.0.2",
  "Authors@R": "c(person(\"Erin\", \"Craig\", role=c(\"aut\", \"cre\", \"cph\"), email = \"ercr@umich.edu\", comment = c(ORCID = \"0000-0002-4893-6671\")),\nperson(\"Rob\", \"Tibshirani\", role=c(\"aut\", \"cph\")))",
  "Maintainer": "Erin Craig <ercr@umich.edu>",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "URL": "https://erincr.github.io/ptLasso/,\nhttps://doi.org/10.1093/jrsssb/qkaf050",
  "BugReports": "https://github.com/erincr/ptLasso/issues",
  "NeedsCompilation": "yes",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Language": "en",
  "Repository": "https://erincr.r-universe.dev",
  "Date/Publication": "2026-10-16 20:22:20 UTC",
  "RemoteUrl": "https://github.com/erincr/ptlasso",
  "RemoteRef": "HEAD",
  "RemoteSha": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
  "Packaged": {
    "Date": "2026-10-28 11:33:51 UTC",
    "User": "root"
  },
  "Author": "Erin Craig [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-4893-6671>),\nRob Tibshirani [aut, cph]",
  "_user": "erincr",
  "_type": "src",
  "_file": "ptLasso_1.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/f13e813f50ca5ac653d2a64f2b7ca02bd57d2dbebf3e1f71720c746fe555a3ca",
  "_filesize": 762435,
  "_sha256": "f13e813f50ca5ac653d2a64f2b7ca02bd57d2dbebf3e1f71720c746fe555a3ca",
  "_expires": "2027-02-05T11:47:39.000Z",
  "_created": "2026-10-28T11:33:51.000Z",
  "_published": "2026-10-28T11:47:41.626Z",
  "_upstream": "https://github.com/erincr/ptlasso",
  "_status": "success",
  "_maintainer": {
    "name": "Erin Craig",
    "email": "ercr@umich.edu",
    "orcid": "0000-0002-4893-6671"
  },
  "_jobs": [
    {
      "job": 122791336055,
      "time": 239,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12812598454"
    },
    {
      "job": 122791336168,
      "time": 433,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12812303809"
    },
    {
      "job": 122791336053,
      "time": 422,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12812638894"
    },
    {
      "job": 122791336151,
      "time": 334,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12812783425"
    },
    {
      "job": 122788109963,
      "time": 442,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12812677762"
    },
    {
      "job": 122791336013,
      "time": 230,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12812443054"
    },
    {
      "job": 122791336254,
      "time": 780,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12814005401"
    },
    {
      "job": 122791336032,
      "time": 274,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12812942813"
    },
    {
      "job": 122791336311,
      "time": 566,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12812614533"
    }
  ],
  "_buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006",
  "_commit": {
    "id": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
    "author": "Erin Craig <ercr@sph-25r001-bio.ddns.sph.umich.edu>",
    "committer": "Erin Craig <ercr@sph-25r001-bio.ddns.sph.umich.edu>",
    "message": "Speed up timing\n",
    "time": 1792182140
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Depends"
    },
    {
      "package": "glmnet",
      "role": "Depends"
    },
    {
      "package": "gridExtra",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "role": "Depends"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    },
    {
      "package": "sparsepca",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "erincr",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-24",
      "n": 4
    },
    {
      "week": "2026-42",
      "n": 4
    }
  ],
  "_tags": [],
  "_stars": 8,
  "_contributors": [
    {
      "user": "erincr",
      "count": 11,
      "uuid": 8418698
    },
    {
      "user": "stein-erikg",
      "count": 5,
      "uuid": 30684606
    },
    {
      "user": "tibshirani",
      "count": 1,
      "uuid": 2848609
    }
  ],
  "_userbio": {
    "uuid": 8418698,
    "type": "user",
    "name": "Erin Craig",
    "followers": 13
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ptLasso"
  },
  "_devurl": "https://github.com/erincr/ptlasso",
  "_pkgdown": "https://erincr.github.io/ptLasso/",
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/ptLasso.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/erincr/ptlasso",
  "_realowner": "erincr",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2026-10-27"
    }
  ],
  "_exports": [
    "binomial.example.data",
    "cv.ptLasso",
    "gaussian.example.data",
    "get.individual.support",
    "get.overall.support",
    "get.pretrain.support",
    "makedata",
    "makedata.targetgroups",
    "ptLasso"
  ],
  "_help": [
    {
      "page": "binomial.example.data",
      "title": "Simulate input grouped data (binomial outcome) for testing with ptLasso.",
      "topics": [
        "binomial.example.data"
      ]
    },
    {
      "page": "coef.cv.ptLasso",
      "title": "Get the coefficients from a fitted cv.ptLasso model.",
      "topics": [
        "coef.cv.ptLasso"
      ]
    },
    {
      "page": "coef.ptLasso",
      "title": "Get the coefficients from a fitted ptLasso model.",
      "topics": [
        "coef.ptLasso"
      ]
    },
    {
      "page": "cv.ptLasso",
      "title": "Cross-validation for ptLasso",
      "topics": [
        "cv.ptLasso"
      ]
    },
    {
      "page": "gaussian.example.data",
      "title": "Simulate input grouped data (gaussian outcome) for testing with ptLasso.",
      "topics": [
        "gaussian.example.data"
      ]
    },
    {
      "page": "get.individual.support",
      "title": "Get the support for individual models",
      "topics": [
        "get.individual.support"
      ]
    },
    {
      "page": "get.overall.support",
      "title": "Get the support for the overall model",
      "topics": [
        "get.overall.support"
      ]
    },
    {
      "page": "get.pretrain.support",
      "title": "Get the support for pretrained models",
      "topics": [
        "get.pretrain.support"
      ]
    },
    {
      "page": "makedata",
      "title": "Simulate input grouped data for testing with ptLasso.",
      "topics": [
        "makedata"
      ]
    },
    {
      "page": "makedata.targetgroups",
      "title": "Simulate target grouped data for testing with ptLasso.",
      "topics": [
        "makedata.targetgroups"
      ]
    },
    {
      "page": "plot.cv.ptLasso",
      "title": "Plot the cross-validation curve produced by cv.ptLasso, as a function of the 'alpha' values used.",
      "topics": [
        "plot.cv.ptLasso"
      ]
    },
    {
      "page": "plot.ptLasso",
      "title": "Plot the models trained by a ptLasso object",
      "topics": [
        "plot.ptLasso"
      ]
    },
    {
      "page": "predict.cv.ptLasso",
      "title": "Predict using a cv.ptLasso object.",
      "topics": [
        "predict.cv.ptLasso"
      ]
    },
    {
      "page": "predict.ptLasso",
      "title": "Predict using a ptLasso object.",
      "topics": [
        "predict.ptLasso"
      ]
    },
    {
      "page": "print.cv.ptLasso",
      "title": "Print the cv.ptLasso object.",
      "topics": [
        "print.cv.ptLasso"
      ]
    },
    {
      "page": "print.predict.cv.ptLasso",
      "title": "Print the predict.cv.ptLasso object.",
      "topics": [
        "print.predict.cv.ptLasso"
      ]
    },
    {
      "page": "print.predict.ptLasso",
      "title": "Print the predict.ptLasso object.",
      "topics": [
        "print.predict.ptLasso"
      ]
    },
    {
      "page": "print.ptLasso",
      "title": "Print the ptLasso object.",
      "topics": [
        "print.ptLasso"
      ]
    },
    {
      "page": "ptLasso",
      "title": "Fit a pretrained lasso model using glmnet.",
      "topics": [
        "ptLasso"
      ]
    }
  ],
  "_readme": "https://github.com/erincr/ptlasso/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "farver",
    "foreach",
    "ggplot2",
    "glmnet",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "shape",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "InputGroupedData.Rmd",
      "filename": "InputGroupedData.html",
      "title": "Input grouped data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Base case: input grouped data with a binomial outcome",
        "Base case: input grouped survival data"
      ],
      "created": "2024-06-19 02:12:21",
      "modified": "2025-08-26 17:22:56",
      "commits": 3
    },
    {
      "source": "MultiResponseGaussian.Rmd",
      "filename": "MultiResponseGaussian.html",
      "title": "Multi-response data with Gaussian responses",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-06-13 19:31:35",
      "modified": "2025-08-26 17:22:56",
      "commits": 5
    },
    {
      "source": "ptLasso.Rmd",
      "filename": "ptLasso.html",
      "title": "ptLasso Vignette and Manual",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction to pretraining",
        "Review of the lasso",
        "Details of pretraining",
        "ptLasso under the hood",
        "Quick start",
        "ptLasso uses the same syntax as glmnet",
        "An example",
        "Other details",
        "Choosing $\\alpha$, the pretraining parameter",
        "Choosing $\\lambda$, the lasso path parameter, for the first stage of pretraining",
        "Fitting elasticnet or ridge models",
        "Printing progress during model training",
        "Using individual and overall models that were previously trained",
        "Fitting the overall model without group-specific intercepts",
        "Arguments for use in cv.glmnet",
        "Parallelizing model fitting",
        "More pretraining!",
        "References"
      ],
      "created": "2024-04-03 00:36:59",
      "modified": "2025-08-26 18:59:27",
      "commits": 18
    },
    {
      "source": "TargetGroupedData.Rmd",
      "filename": "TargetGroupedData.html",
      "title": "Target grouped or multinomial reponse data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Intuition",
        "Example"
      ],
      "created": "2024-06-19 02:12:21",
      "modified": "2024-06-27 01:41:56",
      "commits": 3
    },
    {
      "source": "TimeSeriesData.Rmd",
      "filename": "TimeSeriesData.html",
      "title": "Time series data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example 1: covariates are constant over time",
        "Example 2: covariates change over time"
      ],
      "created": "2024-04-03 00:36:59",
      "modified": "2024-06-19 21:09:40",
      "commits": 7
    }
  ],
  "_score": 5.903089986991944,
  "_indexed": true,
  "_nocasepkg": "ptlasso",
  "_universes": [
    "erincr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-10-28T11:36:04.000Z",
      "distro": "resolute",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/31f51655e9a7f731a8ddfa00acaa4834dbd54af3c627b048cdb1c9ea1e84c5cb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-10-28T11:39:23.000Z",
      "distro": "resolute",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/175e458dfc27b903a780e9f540e024854ea7e569306c4cf5bfb56285d9d5fd6e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-10-28T11:38:09.000Z",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/7625cf4cd612ffd475e19e2c5340c0a3029d6e5725d721d33ea54884b7303b87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-10-28T11:37:25.000Z",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/afbf28eefe3a4f752b65b94ec58d80d97cb4f1234cc726f2164a8b280b2cd5b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-10-28T11:38:06.000Z",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/e099ac965e0aadf60ec8745d5dde423a7c209de9376f9388ef660513b9bda36b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-10-28T11:44:51.000Z",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/069dd02ca45e649134da5a9bb213d4af7ad17253bf5ad4318ea417ca8e144408",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-10-28T11:36:23.000Z",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/35c1cfc3e2485a535eb10456402697e91f4e1f8c8a8c890efcb9f0190315f488",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-10-28T11:41:09.000Z",
      "commit": "3d8b8f8813e53e7461dd9f9c625122b5cea19cd4",
      "fileid": "https://r2.ropensci.org/4cf0ab96d9352599aa22f69350bebfa04172fa24ba7404ed611f1af5f22a7288",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erincr/actions/runs/40680001006"
    }
  ]
}