{
  "_id": "6aceb420f6f39cd7e29a1bc5",
  "Package": "pre",
  "Title": "Prediction Rule Ensembles",
  "Version": "1.1.1",
  "Authors@R": "c(person(\"Marjolein\", \"Fokkema\", role = c(\"aut\", \"cre\"), email = \n\"m.fokkema@fsw.leidenuniv.nl\"), person(given = \"Benjamin\",\nfamily = \"Christoffersen\", role = \"aut\", email = \"boennecd@gmail.com\"),\nperson(given = \"Giorgio\", family = \"Spadaccini\", role = \"ctb\"))",
  "Author": "Marjolein Fokkema [aut, cre], Benjamin Christoffersen [aut],\nGiorgio Spadaccini [ctb]",
  "Maintainer": "Marjolein Fokkema <m.fokkema@fsw.leidenuniv.nl>",
  "Description": "Fits prediction rule ensembles (PREs). Largely follows the\nprocedure for deriving PREs as described in Friedman & Popescu\n(2008; <DOI:10.1214/07-AOAS148>), with adjustments and\nimprovements described in Fokkema (2020;\n<DOI:10.18637/jss.v092.i12>) and Fokkema & Strobl (2020;\n<DOI:10.1037/met0000256>). The main function pre() derives\nprediction rule ensembles consisting of rules and/or linear\nterms for continuous, binary, count, multinomial, survival and\nmultivariate continuous responses. Function gpe() derives\ngeneralized prediction ensembles, consisting of rules, hinge\nand linear functions of the predictor variables.",
  "URL": "https://github.com/marjoleinF/pre",
  "BugReports": "https://github.com/marjoleinF/pre/issues",
  "License": "GPL-2 | GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://marjoleinf.r-universe.dev",
  "Date/Publication": "2026-10-13 17:24:56 UTC",
  "RemoteUrl": "https://github.com/marjoleinF/pre",
  "RemoteRef": "HEAD",
  "RemoteSha": "34e0f86d893b962a000924994b7d54a1c730a8a1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-13 22:36:49 UTC",
    "User": "root"
  },
  "_user": "marjoleinf",
  "_type": "src",
  "_file": "pre_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/76fa86c8650ae29e0a18badf1a1974201fa19d165914de15a17b45093f164dc2",
  "_filesize": 2816797,
  "_sha256": "76fa86c8650ae29e0a18badf1a1974201fa19d165914de15a17b45093f164dc2",
  "_expires": "2027-01-21T22:42:12.000Z",
  "_created": "2026-10-13T22:36:49.000Z",
  "_published": "2026-10-13T22:43:44.873Z",
  "_buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115576696210,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11856896935"
    },
    {
      "job": 115574583795,
      "time": 348,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11856626764"
    },
    {
      "job": 115576696170,
      "time": 155,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11856801895"
    },
    {
      "job": 115576696291,
      "time": 151,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11856047028"
    }
  ],
  "_upstream": "https://github.com/marjoleinF/pre",
  "_commit": {
    "id": "34e0f86d893b962a000924994b7d54a1c730a8a1",
    "author": "Marjolein Fokkema <marjolein.fokkema@gmail.com>",
    "committer": "Marjolein Fokkema <marjolein.fokkema@gmail.com>",
    "message": "version 1.1.1\n",
    "time": 1791912296
  },
  "_maintainer": {
    "name": "Marjolein Fokkema",
    "email": "m.fokkema@fsw.leidenuniv.nl",
    "login": "marjoleinf",
    "twitter": "@MarjoFokkema",
    "description": "Full Professor of Computational Statistics with Applications in Psychology",
    "uuid": 16515996
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "earth",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "partykit",
      "version": ">= 1.2-0",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "MatrixModels",
      "role": "Imports"
    },
    {
      "package": "rpart",
      "role": "Imports"
    },
    {
      "package": "interp",
      "role": "Suggests"
    },
    {
      "package": "datasets",
      "role": "Suggests"
    },
    {
      "package": "doParallel",
      "role": "Suggests"
    },
    {
      "package": "foreach",
      "role": "Suggests"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "mlbench",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "mboost",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "caret",
      "role": "Suggests"
    },
    {
      "package": "pROC",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "role": "Suggests"
    },
    {
      "package": "shape",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "shapviz",
      "role": "Suggests"
    }
  ],
  "_owner": "marjoleinf",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 58,
  "_contributors": [
    {
      "user": "marjoleinf",
      "count": 172,
      "uuid": 16515996
    },
    {
      "user": "boennecd",
      "count": 53,
      "uuid": 8993362
    },
    {
      "user": "krz",
      "count": 1,
      "uuid": 210623
    },
    {
      "user": "holub008",
      "count": 1,
      "uuid": 7282590
    }
  ],
  "_userbio": {
    "uuid": 16515996,
    "type": "user",
    "name": "Marjolein Fokkema",
    "followers": 48,
    "description": "Full Professor of Computational Statistics with Applications in Psychology"
  },
  "_downloads": {
    "count": 2221,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/pre"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/marjoleinf/pre",
  "_searchresults": 132,
  "_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/pre.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/marjoleinf/pre",
  "_realowner": "marjoleinf",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2016-12-24"
    },
    {
      "version": "0.2",
      "date": "2017-04-26"
    },
    {
      "version": "0.3.0",
      "date": "2017-08-03"
    },
    {
      "version": "0.4",
      "date": "2017-08-31"
    },
    {
      "version": "0.4-1",
      "date": "2018-01-23"
    },
    {
      "version": "0.5.0",
      "date": "2018-05-07"
    },
    {
      "version": "0.6.0",
      "date": "2018-08-03"
    },
    {
      "version": "0.7.0",
      "date": "2019-04-01"
    },
    {
      "version": "0.7.1",
      "date": "2019-04-26"
    },
    {
      "version": "0.7.2",
      "date": "2019-11-29"
    },
    {
      "version": "1.0.0",
      "date": "2020-03-06"
    },
    {
      "version": "1.0.1",
      "date": "2021-07-05"
    },
    {
      "version": "1.0.2",
      "date": "2022-02-25"
    },
    {
      "version": "1.0.3",
      "date": "2022-03-12"
    },
    {
      "version": "1.0.4",
      "date": "2022-03-30"
    },
    {
      "version": "1.0.5",
      "date": "2022-06-10"
    },
    {
      "version": "1.0.6",
      "date": "2023-02-13"
    },
    {
      "version": "1.0.7",
      "date": "2024-01-12"
    },
    {
      "version": "1.0.8",
      "date": "2025-09-06"
    },
    {
      "version": "1.0.9",
      "date": "2026-06-09"
    },
    {
      "version": "1.1.0",
      "date": "2026-09-08"
    },
    {
      "version": "1.1.1",
      "date": "2026-09-11"
    }
  ],
  "_exports": [
    "bsnullinteract",
    "caret_pre_model",
    "corplot",
    "cvpre",
    "eTerm",
    "explain",
    "gpe",
    "gpe_cv.glmnet",
    "gpe_earth",
    "gpe_linear",
    "gpe_rules_pre",
    "gpe_sample",
    "gpe_trees",
    "importance",
    "interact",
    "lTerm",
    "maxdepth_sampler",
    "mi_mean",
    "mi_pre",
    "pairplot",
    "pre",
    "prune_pre",
    "rare_level_sampler",
    "rTerm",
    "shap",
    "singleplot"
  ],
  "_datasets": [
    {
      "name": "carrillo",
      "title": "Data on personality characteristics and depressive symptom severity",
      "object": "carrillo",
      "class": [
        "data.frame"
      ],
      "fields": [
        "n1",
        "n2",
        "n3",
        "n4",
        "n5",
        "n6",
        "ntot",
        "e1",
        "e2",
        "e3",
        "e4",
        "e5",
        "e6",
        "etot",
        "open1",
        "open2",
        "open3",
        "open4",
        "open6",
        "opentot",
        "altot",
        "contot",
        "bdi",
        "sexo",
        "edad",
        "open5"
      ],
      "rows": 112,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bsnullinteract",
      "title": "Compute bootstrapped null interaction prediction rule ensembles",
      "topics": [
        "bsnullinteract"
      ]
    },
    {
      "page": "caret_pre_model",
      "title": "Model set up for train function of package caret",
      "topics": [
        "caret_pre_model"
      ]
    },
    {
      "page": "carrillo",
      "title": "Data on personality characteristics and depressive symptom severity",
      "topics": [
        "carrillo"
      ]
    },
    {
      "page": "coef.gpe",
      "title": "Coefficients for a General Prediction Ensemble (gpe)",
      "topics": [
        "coef.gpe"
      ]
    },
    {
      "page": "coef.pre",
      "title": "Coefficients for the final prediction rule ensemble",
      "topics": [
        "coef.pre"
      ]
    },
    {
      "page": "corplot",
      "title": "Plot correlations between baselearners in a prediction rule ensemble (pre)",
      "topics": [
        "corplot"
      ]
    },
    {
      "page": "cvpre",
      "title": "Full k-fold cross validation of a prediction rule ensemble (pre)",
      "topics": [
        "cvpre"
      ]
    },
    {
      "page": "explain",
      "title": "Explain predictions from final prediction rule ensemble",
      "topics": [
        "explain"
      ]
    },
    {
      "page": "gpe",
      "title": "Derive a General Prediction Ensemble (gpe)",
      "topics": [
        "gpe"
      ]
    },
    {
      "page": "gpe_cv.glmnet",
      "title": "Default penalized trainer for gpe",
      "topics": [
        "gpe_cv.glmnet"
      ]
    },
    {
      "page": "gpe_rules_pre",
      "title": "Get rule learner for gpe which mimics behavior of pre",
      "topics": [
        "gpe_rules_pre"
      ]
    },
    {
      "page": "gpe_sample",
      "title": "Sampling Function Generator for gpe",
      "topics": [
        "gpe_sample"
      ]
    },
    {
      "page": "gpe_trees",
      "title": "Learner Functions Generators for gpe",
      "topics": [
        "gpe_earth",
        "gpe_linear",
        "gpe_trees"
      ]
    },
    {
      "page": "importance.pre",
      "title": "Calculate importances of baselearners and input variables in a prediction rule ensemble (pre)",
      "topics": [
        "importance",
        "importance.pre"
      ]
    },
    {
      "page": "interact",
      "title": "Calculate interaction statistics for variables in a prediction rule ensemble (pre)",
      "topics": [
        "interact"
      ]
    },
    {
      "page": "maxdepth_sampler",
      "title": "Sampling function generator for specifying varying maximum tree depth in a prediction rule ensemble (pre)",
      "topics": [
        "maxdepth_sampler"
      ]
    },
    {
      "page": "mi_mean",
      "title": "Compute the average dataset over imputed datasets.",
      "topics": [
        "mi_mean"
      ]
    },
    {
      "page": "mi_pre",
      "title": "Fit a prediction rule ensemble to multiply-imputed data (experimental)",
      "topics": [
        "mi_pre"
      ]
    },
    {
      "page": "pairplot",
      "title": "Create partial dependence plot for a pair of predictor variables in a prediction rule ensemble (pre)",
      "topics": [
        "pairplot"
      ]
    },
    {
      "page": "plot.pre",
      "title": "Plot method for class pre",
      "topics": [
        "plot.pre"
      ]
    },
    {
      "page": "pre",
      "title": "Derive a prediction rule ensemble",
      "topics": [
        "pre"
      ]
    },
    {
      "page": "predict.gpe",
      "title": "Predicted values based on gpe ensemble",
      "topics": [
        "predict.gpe"
      ]
    },
    {
      "page": "predict.pre",
      "title": "Predicted values based on final prediction rule ensemble",
      "topics": [
        "predict.pre"
      ]
    },
    {
      "page": "print.gpe",
      "title": "Print a General Prediction Ensemble (gpe)",
      "topics": [
        "print.gpe"
      ]
    },
    {
      "page": "print.pre",
      "title": "Print method for objects of class pre",
      "topics": [
        "print.pre"
      ]
    },
    {
      "page": "prune_pre",
      "title": "Get the optimal lambda and gamma parameter values for an ensemble of given size",
      "topics": [
        "prune_pre"
      ]
    },
    {
      "page": "rare_level_sampler",
      "title": "Dealing with rare factor levels in fitting prediction rule ensembles.",
      "topics": [
        "rare_level_sampler"
      ]
    },
    {
      "page": "rTerm",
      "title": "Wrapper Functions for terms in gpe",
      "topics": [
        "eTerm",
        "lTerm",
        "rTerm"
      ]
    },
    {
      "page": "RuleMats",
      "title": "Compute matrices that identify the rules",
      "topics": [
        "RuleMats"
      ]
    },
    {
      "page": "shap",
      "title": "Compute SHAP values for a prediction rule ensemble",
      "topics": [
        "shap"
      ]
    },
    {
      "page": "ShapleyMats",
      "title": "Compute a matrix with SHAP values of each rule",
      "topics": [
        "ShapleyMats"
      ]
    },
    {
      "page": "singleplot",
      "title": "Create partial dependence plot for a single variable in a prediction rule ensemble (pre)",
      "topics": [
        "singleplot"
      ]
    },
    {
      "page": "summary.gpe",
      "title": "Summary method for a General Prediction Ensemble (gpe)",
      "topics": [
        "summary.gpe"
      ]
    },
    {
      "page": "summary.pre",
      "title": "Summary method for objects of class pre",
      "topics": [
        "summary.pre"
      ]
    }
  ],
  "_readme": "https://github.com/marjoleinF/pre/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "earth",
    "foreach",
    "Formula",
    "glmnet",
    "glue",
    "inum",
    "iterators",
    "lattice",
    "libcoin",
    "lifecycle",
    "magrittr",
    "Matrix",
    "MatrixModels",
    "mvtnorm",
    "partykit",
    "plotmo",
    "plotrix",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "rpart",
    "sandwich",
    "shape",
    "stringi",
    "stringr",
    "strucchange",
    "survival",
    "vctrs",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "shap.Rmd",
      "filename": "shap.html",
      "title": "Computing SHAP values for rule ensembles",
      "author": "Marjolein Fokkema",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example: Fitting a rule ensemble",
        "Computing marginal SHAP values",
        "Visualizing marginal SHAP values",
        "Visualizing marginal SHAP values with beeswarms and waterfall plots using package shapviz",
        "Computing interaction SHAP values",
        "Understanding (interaction) SHAP values",
        "Visualizing interaction SHAP values",
        "Session info",
        "References"
      ],
      "created": "2026-10-13 17:24:56",
      "modified": "2026-10-13 17:24:56",
      "commits": 1
    },
    {
      "source": "Missingness.Rmd",
      "filename": "Missingness.html",
      "title": "Dealing with missing data in fitting prediction rule ensembles",
      "author": "Marjolein Fokkema",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example: Predicting wind speed",
        "Listwise Deletion",
        "Single Imputation",
        "Multiple Imputation",
        "Stacking imputed datasets",
        "Pooling",
        "Comparing accuracy and sparsity",
        "Session info",
        "References"
      ],
      "created": "2022-02-24 01:50:29",
      "modified": "2026-10-13 17:24:56",
      "commits": 10
    },
    {
      "source": "speed.Rmd",
      "filename": "speed.html",
      "title": "Speeding up computations",
      "author": "Marjolein Fokkema",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Faster rule generation",
        "Tree fitting algorithm",
        "Maximum rule depth",
        "Number of trees",
        "Faster estimation of the final ensemble",
        "Parallel computation",
        "Number of cross-validation folds",
        "References"
      ],
      "created": "2024-01-12 13:16:11",
      "modified": "2025-04-02 16:09:17",
      "commits": 3
    },
    {
      "source": "relaxed.Rmd",
      "filename": "relaxed.html",
      "title": "More adaptive or relaxed: Fitting sparser rule ensembles with relaxed and/or adaptive lasso",
      "author": "Marjolein Fokkema",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Relaxed lasso",
        "Adaptive lasso",
        "Relaxed adaptive lasso",
        "Example: Predicting Ozone levels with relaxed and/or adaptive lasso",
        "Forward stepwise selection with the relaxed lasso",
        "Conclusion",
        "Session info",
        "References"
      ],
      "created": "2022-03-15 18:41:27",
      "modified": "2026-10-13 17:24:56",
      "commits": 10
    },
    {
      "source": "Tuning.Rmd",
      "filename": "Tuning.html",
      "title": "Tuning parameters of function pre",
      "author": "Marjolein Fokkema",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Tuning parameters",
        "Tuning parameters using package caret",
        "Using Breiman's random forests for rule generation",
        "References"
      ],
      "created": "2022-02-24 01:50:29",
      "modified": "2026-10-13 17:24:56",
      "commits": 9
    }
  ],
  "_score": 9.360884251812267,
  "_indexed": true,
  "_nocasepkg": "pre",
  "_universes": [
    "marjoleinf"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-13T22:40:06.000Z",
      "distro": "resolute",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/1d10cb5d3e7bd0fb21d7ec258467f4f9ea7faeb0834a2bc152fe9b34eae452d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-13T22:39:51.000Z",
      "distro": "resolute",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/d8e2a8037bcf66f68c4248e1fc3a5688bad75c14f15247249cdd572b9420dc43",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-10-13T22:38:40.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/4f208e30041514b31617a4f0b4f9b94c266dc56960d9b53e697acbd12e22d041",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-10-13T22:38:55.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/b25bf165505b5e1282ace14c39b97f1a6eae1ebe980da2907aafc73dddfde17b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-10-13T22:39:49.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/2f248a4a799f52f001d92ba8eb5e6b84c0728b170624739b22043017aab7e31a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-13T22:39:21.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/f0e82546ad911e21d254881e81ba0d8d62edcbfa0370449548b42144a4d84bfd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-13T22:38:19.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/8de2382121698dde8060c5c0d711cbbca2ffb4d6677f4b3a9f3c1c71703ae057",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-13T22:38:26.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/1a74e4ebc90c803795081fc666b2f185dda6f00463478b9af296802aff56e59d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/38478335680"
    }
  ]
}