{
  "_id": "6a1eae96b25058d4daada9be",
  "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-06-02 10:15:25 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>",
  "MD5sum": "eede068ea7347973fde15398d23ad874",
  "_user": "bbolker",
  "_type": "src",
  "_file": "prediction_0.3.18.tar.gz",
  "_fileid": "5fdfdf315f223f3483d32d02cbcd22c07502cd1830062ca3ad4b0205437e9ac2",
  "_filesize": 221726,
  "_sha256": "5fdfdf315f223f3483d32d02cbcd22c07502cd1830062ca3ad4b0205437e9ac2",
  "_created": "2026-06-02T10:15:25.000Z",
  "_published": "2026-06-02T10:21:10.228Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79048645854,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7355019660"
    },
    {
      "job": 79048645883,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7355031016"
    },
    {
      "job": 79048645917,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7355006874"
    },
    {
      "job": 79048646003,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7355014172"
    },
    {
      "job": 79048272724,
      "time": 136,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7354964703"
    },
    {
      "job": 79048645860,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7355004455"
    },
    {
      "job": 79048646037,
      "time": 310,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7355069108"
    },
    {
      "job": 79048645914,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7355013030"
    },
    {
      "job": 79048645972,
      "time": 222,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7355040134"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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"
  },
  "_downloads": {
    "count": 18099,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/prediction"
  },
  "_mentions": 18,
  "_devurl": "https://github.com/bbolker/prediction",
  "_searchresults": 136,
  "_rbuild": "4.6.0",
  "_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",
    "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.77140473011789,
  "_indexed": true,
  "_nocasepkg": "prediction",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-06-02T10:18:03.000Z",
      "distro": "noble",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "d1af097c26532efeb261cd14b6c6c27cd1fb7c25d434c181ffb3e0decb3ab560",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-06-02T10:18:33.000Z",
      "distro": "noble",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "e3d81848ca94784e47f8c2e94dd31a0c12c37bbb9c15b6253e950a3fe84afef2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-06-02T10:17:25.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "facae8bfd42541690aeebe1ddf66b676cf6781e0040fc1d0020c044a75b88cc6",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-06-02T10:17:38.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "95233e145045c6ccb206d3beff3c8f33b503fecf7c6a711623c2b1f8131faf16",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.18",
      "date": "2026-06-02T10:17:43.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "0a335ea6450d4d141367644a02a3ce9c7c3208cf8c62b8db444574d08385353a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-06-02T10:20:18.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "5477e5c74e989d4c6742acccf30079c765f110d4be51696ae64d3b39feaa29b2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-06-02T10:17:34.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "e2feb3084dc8c1de29af58017d94a9b02707ddc6ddf8639c24bce61e05ef70e1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-06-02T10:18:52.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "813d6489e1c5968839eed9cc233c76dfc9e5db93d9aa22a6656fa87912b728c5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/26813186242"
    }
  ]
}