{
  "_id": "6af5cb57be2268deb4a3da65",
  "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-11-12 14:02:09 UTC",
    "User": "root"
  },
  "_user": "marjoleinf",
  "_type": "src",
  "_file": "pre_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/327fb8299344a70abed65d8e92ed84e02d9c7b9710f1e46d29d022bd62f88386",
  "_filesize": 2056853,
  "_sha256": "327fb8299344a70abed65d8e92ed84e02d9c7b9710f1e46d29d022bd62f88386",
  "_expires": "2027-02-20T14:21:09.000Z",
  "_created": "2026-11-12T14:02:09.000Z",
  "_published": "2026-11-12T14:21:11.001Z",
  "_upstream": "https://github.com/marjoleinF/pre",
  "_status": "failure",
  "_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
  },
  "_jobs": [
    {
      "job": 131233380433,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "13951796579"
    },
    {
      "job": 131233380391,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "13951526945"
    },
    {
      "job": 131233380344,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "13951439403"
    },
    {
      "job": 131233380315,
      "time": 187,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "13952033672"
    },
    {
      "job": 131230248150,
      "time": 326,
      "config": "source",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "13951346809"
    },
    {
      "job": 131233380349,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13949884081"
    },
    {
      "job": 131233380386,
      "time": 219,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "13950358744"
    },
    {
      "job": 131233380413,
      "time": 241,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "13951561931"
    },
    {
      "job": 131233380408,
      "time": 253,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "13950634703"
    }
  ],
  "_buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 49,
    "description": "Full Professor of Computational Statistics with Applications in Psychology"
  },
  "_downloads": {
    "count": 2455,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/pre"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/marjoleinf/pre",
  "_searchresults": 143,
  "_rbuild": "4.6.2",
  "_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"
  ],
  "_score": 7.740179291645974,
  "_indexed": true,
  "_nocasepkg": "pre",
  "_universes": [
    "marjoleinf"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-11-12T14:04:44.000Z",
      "distro": "resolute",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/0b4de321604373cb8f540135dc7730b7e689e6b5f9f0df25c245f32f386cbe06",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-11-12T14:05:00.000Z",
      "distro": "resolute",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/b546d53adf9f38d2ff3585ecb7ca209998eec7755250b4ad0b933b1a920c3482",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-11-12T14:18:24.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/47bcb97b85eb2142428b76bfa13afc4c18c40c94f20365b5e38d0aba06953bfc",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-11-12T14:19:40.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/da78369e51dbb5b0d44590501d84a4463d82d4fac68e5c217271c6c90395aab9",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-11-12T14:04:36.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/766ac5b5e57360afd1542083cd5944c0c01b12f68d003c830f4f25733c89d52d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-11-12T14:04:34.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/6d63b4d77435c75bd7e3dbacd54bded3a1a57927e6b4be58cf53bab5815d189e",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-11-12T14:04:55.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/c3247b767fda3d56668c9caf9e32b905f233cb6d4ff48d5e2945bf82b4bbe94b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-11-12T14:04:49.000Z",
      "commit": "34e0f86d893b962a000924994b7d54a1c730a8a1",
      "fileid": "https://r2.ropensci.org/debbc8f5b74284c40154181dfa63a648851bcf6efc544cab05249532a2dd4787",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/marjoleinf/actions/runs/43232178196"
    }
  ]
}