{
  "_id": "6a4790428b9f0d9747cf1547",
  "Package": "prediction",
  "Type": "Package",
  "Title": "Tidy, Type-Safe 'prediction()' Methods",
  "Description": "A one-function package containing prediction(), a\ntype-safe alternative to predict() that always returns a data\nframe. The summary() method provides a data frame with average\npredictions, possibly over counterfactual versions of the data\n(à la the margins command in 'Stata'). Marginal effect\nestimation is provided by the related package, 'margins'\n<https://cran.r-project.org/package=margins>. The package\ncurrently supports common model types (e.g., lm, glm) from the\n'stats' package, as well as numerous other model classes from\nother add-on packages. See the README file or main package\ndocumentation page for a complete listing.",
  "License": "MIT + file LICENSE",
  "Version": "0.3.18",
  "Authors@R": "c(person(\"Thomas J.\", \"Leeper\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-4097-6326\")),\nperson(\"Carl\", \"Ganz\", role = \"ctb\"),\nperson(\"Vincent\", \"Arel-Bundock\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0003-2042-7063\")),\nperson(\"Ben\",\"Bolker\",email=\"bolker@mcmaster.ca\",\nrole=c(\"ctb\",\"cre\"),\ncomment=c(ORCID=\"0000-0002-2127-0443\"))\n)",
  "URL": "https://github.com/bbolker/prediction",
  "BugReports": "https://github.com/bbolker/prediction/issues",
  "ByteCompile": "true",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Repository": "https://bbolker.r-universe.dev",
  "Date/Publication": "2024-12-13 00:19:33 UTC",
  "RemoteUrl": "https://github.com/bbolker/prediction",
  "RemoteRef": "HEAD",
  "RemoteSha": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-02 08:45:48 UTC",
    "User": "root"
  },
  "Author": "Thomas J. Leeper [aut] (ORCID: <https://orcid.org/0000-0003-4097-6326>),\nCarl Ganz [ctb],\nVincent Arel-Bundock [ctb] (ORCID:\n<https://orcid.org/0000-0003-2042-7063>),\nBen Bolker [ctb, cre] (ORCID: <https://orcid.org/0000-0002-2127-0443>)",
  "Maintainer": "Ben Bolker <bolker@mcmaster.ca>",
  "_user": "bbolker",
  "_type": "src",
  "_file": "prediction_0.3.18.tar.gz",
  "_fileid": "https://r2.ropensci.org/1aa2fcc8f5298b8a086f70929c6e08b193f65f6b1f6b1ac0ceb1050dc2a40f0e",
  "_filesize": 224654,
  "_sha256": "1aa2fcc8f5298b8a086f70929c6e08b193f65f6b1f6b1ac0ceb1050dc2a40f0e",
  "_expires": "2026-10-11T10:34:42.000Z",
  "_created": "2026-07-02T08:45:48.000Z",
  "_published": "2026-07-03T10:34:42.958Z",
  "_jobs": [
    {
      "job": 84981722453,
      "time": 180,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "8033552796"
    },
    {
      "job": 84981709326,
      "time": 172,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033550129"
    },
    {
      "job": 84981709332,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "8033536595"
    },
    {
      "job": 84981709293,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033527768"
    },
    {
      "job": 84981727395,
      "time": 167,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8033484789"
    },
    {
      "job": 84981728975,
      "time": 167,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8033548485"
    },
    {
      "job": 84981725707,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "8033524234"
    },
    {
      "job": 84981709251,
      "time": 143,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "8033540417"
    },
    {
      "job": 84981734118,
      "time": 116,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033528968"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208",
  "_status": "success",
  "_upstream": "https://github.com/bbolker/prediction",
  "_commit": {
    "id": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
    "author": "Ben Bolker <bbolker@gmail.com>",
    "committer": "Ben Bolker <bbolker@gmail.com>",
    "message": "update GLM example\n",
    "time": 1734049173
  },
  "_maintainer": {
    "name": "Ben Bolker",
    "email": "bolker@mcmaster.ca",
    "login": "bbolker",
    "description": "",
    "uuid": 78918,
    "orcid": "0000-0002-2127-0443"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "datasets",
      "role": "Suggests"
    },
    {
      "package": "methods",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "AER",
      "role": "Enhances"
    },
    {
      "package": "aod",
      "role": "Enhances"
    },
    {
      "package": "betareg",
      "role": "Enhances"
    },
    {
      "package": "biglm",
      "role": "Enhances"
    },
    {
      "package": "brglm",
      "role": "Enhances"
    },
    {
      "package": "caret",
      "role": "Enhances"
    },
    {
      "package": "crch",
      "role": "Enhances"
    },
    {
      "package": "e1071",
      "role": "Enhances"
    },
    {
      "package": "earth",
      "role": "Enhances"
    },
    {
      "package": "ff",
      "role": "Enhances"
    },
    {
      "package": "gam",
      "version": ">= 1.15",
      "role": "Enhances"
    },
    {
      "package": "gee",
      "role": "Enhances"
    },
    {
      "package": "glmnet",
      "role": "Enhances"
    },
    {
      "package": "glmx",
      "role": "Enhances"
    },
    {
      "package": "kernlab",
      "role": "Enhances"
    },
    {
      "package": "lme4",
      "role": "Enhances"
    },
    {
      "package": "MASS",
      "role": "Enhances"
    },
    {
      "package": "mclogit",
      "role": "Enhances"
    },
    {
      "package": "mda",
      "role": "Enhances"
    },
    {
      "package": "mlogit",
      "role": "Enhances"
    },
    {
      "package": "MNP",
      "role": "Enhances"
    },
    {
      "package": "nlme",
      "role": "Enhances"
    },
    {
      "package": "nnet",
      "role": "Enhances"
    },
    {
      "package": "ordinal",
      "role": "Enhances"
    },
    {
      "package": "plm",
      "role": "Enhances"
    },
    {
      "package": "pscl",
      "role": "Enhances"
    },
    {
      "package": "quantreg",
      "role": "Enhances"
    },
    {
      "package": "rpart",
      "role": "Enhances"
    },
    {
      "package": "sampleSelection",
      "role": "Enhances"
    },
    {
      "package": "speedglm",
      "role": "Enhances"
    },
    {
      "package": "survey",
      "version": ">= 3.31-5",
      "role": "Enhances"
    },
    {
      "package": "survival",
      "role": "Enhances"
    },
    {
      "package": "truncreg",
      "role": "Enhances"
    },
    {
      "package": "VGAM",
      "role": "Enhances"
    }
  ],
  "_owner": "bbolker",
  "_selfowned": true,
  "_usedby": 8,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "leeper",
      "count": 196,
      "uuid": 3505428
    },
    {
      "user": "bbolker",
      "count": 7,
      "uuid": 78918
    },
    {
      "user": "carlganz",
      "count": 3,
      "uuid": 11653794
    }
  ],
  "_userbio": {
    "uuid": 78918,
    "type": "user",
    "name": "Ben Bolker",
    "followers": 917
  },
  "_downloads": {
    "count": 14862,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/prediction"
  },
  "_mentions": 18,
  "_devurl": "https://github.com/bbolker/prediction",
  "_searchresults": 135,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/prediction.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bbolker/prediction",
  "_realowner": "bbolker",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2016-10-30"
    },
    {
      "version": "0.1.10",
      "date": "2017-03-01"
    },
    {
      "version": "0.1.11",
      "date": "2017-03-22"
    },
    {
      "version": "0.2.0",
      "date": "2017-04-19"
    },
    {
      "version": "0.3.2",
      "date": "2018-04-12"
    },
    {
      "version": "0.3.6",
      "date": "2018-05-22"
    },
    {
      "version": "0.3.6.1",
      "date": "2018-12-04"
    },
    {
      "version": "0.3.6.2",
      "date": "2019-01-31"
    },
    {
      "version": "0.3.14",
      "date": "2019-06-17"
    },
    {
      "version": "0.3.17",
      "date": "2024-04-24"
    },
    {
      "version": "0.3.18",
      "date": "2024-06-11"
    }
  ],
  "_exports": [
    "build_datalist",
    "find_data",
    "mean_or_mode",
    "median_or_mode",
    "prediction",
    "prediction_summary",
    "seq_range"
  ],
  "_datasets": [
    {
      "name": "margex",
      "title": "Artificial data for margins, copied from Stata",
      "object": "margex",
      "file": "margex.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "y",
        "outcome",
        "sex",
        "group",
        "age",
        "distance",
        "ycn",
        "yc",
        "treatment",
        "agegroup",
        "arm"
      ],
      "rows": 3000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "prediction",
      "title": "Extract Predictions from a Model Object",
      "topics": [
        "prediction-package",
        "prediction",
        "prediction.ar",
        "prediction.Arima",
        "prediction.arima0",
        "prediction.betareg",
        "prediction.bigglm",
        "prediction.bigLm",
        "prediction.biglm",
        "prediction.bruto",
        "prediction.clm",
        "prediction.coxph",
        "prediction.crch",
        "prediction.default",
        "prediction.earth",
        "prediction.fda",
        "prediction.Gam",
        "prediction.gausspr",
        "prediction.gee",
        "prediction.glimML",
        "prediction.glimQL",
        "prediction.glm",
        "prediction.glmnet",
        "prediction.glmx",
        "prediction.gls",
        "prediction.hetglm",
        "prediction.hurdle",
        "prediction.hxlr",
        "prediction.ivreg",
        "prediction.knnreg",
        "prediction.kqr",
        "prediction.ksvm",
        "prediction.lda",
        "prediction.lm",
        "prediction.lme",
        "prediction.loess",
        "prediction.lqs",
        "prediction.mars",
        "prediction.mca",
        "prediction.mclogit",
        "prediction.merMod",
        "prediction.mlogit",
        "prediction.mnlogit",
        "prediction.mnp",
        "prediction.multinom",
        "prediction.naiveBayes",
        "prediction.nls",
        "prediction.nnet",
        "prediction.plm",
        "prediction.polr",
        "prediction.polyreg",
        "prediction.ppr",
        "prediction.princomp",
        "prediction.qda",
        "prediction.rlm",
        "prediction.rpart",
        "prediction.rq",
        "prediction.selection",
        "prediction.speedglm",
        "prediction.speedlm",
        "prediction.survreg",
        "prediction.svm",
        "prediction.svyglm",
        "prediction.train",
        "prediction.tree",
        "prediction.truncreg",
        "prediction.vgam",
        "prediction.vglm",
        "prediction.zeroinfl",
        "prediction_summary"
      ]
    },
    {
      "page": "build_datalist",
      "title": "Build list of data.frames",
      "topics": [
        "build_datalist"
      ]
    },
    {
      "page": "find_data",
      "title": "Extract data from a model object",
      "topics": [
        "find_data",
        "find_data.crch",
        "find_data.data.frame",
        "find_data.default",
        "find_data.glimML",
        "find_data.glimQL",
        "find_data.glm",
        "find_data.hxlr",
        "find_data.lm",
        "find_data.mca",
        "find_data.merMod",
        "find_data.svyglm",
        "find_data.train",
        "find_data.vgam",
        "find_data.vglm"
      ]
    },
    {
      "page": "margex",
      "title": "Artificial data for margins, copied from Stata",
      "topics": [
        "margex"
      ]
    },
    {
      "page": "mean_or_mode",
      "title": "Class-dependent variable aggregation",
      "topics": [
        "mean_or_mode",
        "mean_or_mode.data.frame",
        "mean_or_mode.default",
        "mean_or_mode.numeric",
        "median_or_mode",
        "median_or_mode.data.frame",
        "median_or_mode.default",
        "median_or_mode.numeric"
      ]
    },
    {
      "page": "seq_range",
      "title": "Create a sequence over the range of a vector",
      "topics": [
        "seq_range"
      ]
    }
  ],
  "_pkglogo": "https://github.com/bbolker/prediction/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/bbolker/prediction/raw/HEAD/README.md",
  "_rundeps": [
    "data.table"
  ],
  "_score": 7.682622267176093,
  "_indexed": true,
  "_nocasepkg": "prediction",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-07-02T08:48:41.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/b74f1724e4f439743b0a52205abef2f902c2463059a79b4c09d2300d11697c4a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-07-02T08:48:35.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/7a54d7003930daa965f3572b9ad019fabb4a1771f2f54be8fe9be1e41c3a00ef",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-07-02T08:47:57.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/bcfa0f34ef8c474c41ac9e56927900369832105132a88a31b24a7d37ae68436b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-07-02T08:47:35.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/b04bb3124714d1a22a57556942bb568e7926036f03fa365943611bab266588f3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.18",
      "date": "2026-07-02T08:48:57.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/12fcd0dc0fdfe1e943ebe4a4589067db19542217118fdb929e8049caabb7af63",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-07-02T08:47:18.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/c8931c3093d326e54b77a8c24c9c39d0fa1d4ae16dff78c43334fd89426e2057",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-07-02T08:48:00.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/1bd9b2a0b6298c6b786d954cbecb66b6e17318cab443d1e617afde93ed5b80f3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-07-02T08:47:29.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/c388412fb9a54ac1e2e22d796d992409d1369b5b2e9bb90576af816e9ca202df",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/28577175208"
    }
  ]
}