{
  "_id": "6b0bfd5b75ab5e50c7685ecc",
  "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-11-29 10:16:43 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/540dfd692eb3c8dec50656ed071394d4313835546d42c2e9a0bdf09e60798229",
  "_filesize": 221744,
  "_sha256": "540dfd692eb3c8dec50656ed071394d4313835546d42c2e9a0bdf09e60798229",
  "_expires": "2027-03-09T10:24:25.000Z",
  "_created": "2026-11-29T10:16:43.000Z",
  "_published": "2026-11-29T10:24:27.424Z",
  "_upstream": "https://github.com/bbolker/prediction",
  "_status": "success",
  "_maintainer": {
    "name": "Ben Bolker",
    "email": "bolker@mcmaster.ca",
    "login": "bbolker",
    "description": "",
    "uuid": 78918,
    "orcid": "0000-0002-2127-0443"
  },
  "_jobs": [
    {
      "job": 141310682191,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "15306218270"
    },
    {
      "job": 141310682168,
      "time": 157,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15306457286"
    },
    {
      "job": 141310682184,
      "time": 139,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "15305864939"
    },
    {
      "job": 141310682131,
      "time": 182,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15305788105"
    },
    {
      "job": 141309936656,
      "time": 169,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15306143102"
    },
    {
      "job": 141310682231,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15306337774"
    },
    {
      "job": 141310682203,
      "time": 99,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "15306436342"
    },
    {
      "job": 141310682216,
      "time": 76,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "15306447183"
    },
    {
      "job": 141310682241,
      "time": 81,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15306017498"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515",
  "_commit": {
    "id": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
    "author": "Ben Bolker <bbolker@gmail.com>",
    "committer": "Ben Bolker <bbolker@gmail.com>",
    "message": "update GLM example\n",
    "time": 1734049173
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 924
  },
  "_downloads": {
    "count": 10414,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/prediction"
  },
  "_mentions": 18,
  "_devurl": "https://github.com/bbolker/prediction",
  "_searchresults": 139,
  "_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/prediction.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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"
    }
  ],
  "_authors": [
    {
      "name": "Thomas J. Leeper",
      "orcid": "0000-0003-4097-6326",
      "role": [
        "aut"
      ]
    },
    {
      "name": "Carl Ganz",
      "role": [
        "ctb"
      ]
    },
    {
      "name": "Vincent Arel-Bundock",
      "orcid": "0000-0003-2042-7063",
      "role": [
        "ctb"
      ]
    },
    {
      "name": "Ben Bolker",
      "email": "bolker@mcmaster.ca",
      "orcid": "0000-0002-2127-0443",
      "role": [
        "ctb",
        "cre"
      ]
    }
  ],
  "_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.540843615305375,
  "_indexed": true,
  "_nocasepkg": "prediction",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-11-29T10:19:14.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/83d9c7596d701345fdeaec539fd368fd5a8ef9132bf627ebf48157f4f3ab5d2f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-11-29T10:19:12.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/18301496f9f82951a0ce4bc76c14fd9c8545a5e67485e085c6e08a56f250b021",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-11-29T10:23:48.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/4d1779a2a4ef99bde58f224c1607ba04f6da820902d5e5ba51477a8a865b590d",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-11-29T10:20:53.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/a26fbe83841d752cec32286e8b8d78e45bc996267d5177d8dac92905a2966a18",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.18",
      "date": "2026-11-29T10:18:55.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/ffad8e9aa57a2c9f94142e383658d54ff44206cfe73371d4c22be6f60f2d8f00",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-11-29T10:18:07.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/ad5c2612b5cd92a6e3b2b01e9edbdb286ffc55e625624d34e27ba0439d98c639",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-11-29T10:17:56.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/5fe9806f665c7315d56d873bb60c5da36b75753d84d2c419f6f49f7dee12e8b0",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-11-29T10:17:55.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/f64e3c9bd5b8d47d23bab94cd3017bb57a9e1561fd10a37305cd274895efa9b0",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/46251288515"
    }
  ]
}