{
  "_id": "6abcd0f099f7aa8c6aa4c37b",
  "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-09-30 08:28:23 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/9fafbe7fb410bd399cbd776ec597902460c2b185b4492903224d3107bc37ca27",
  "_filesize": 223192,
  "_sha256": "9fafbe7fb410bd399cbd776ec597902460c2b185b4492903224d3107bc37ca27",
  "_expires": "2027-01-08T09:05:50.000Z",
  "_created": "2026-09-30T08:28:23.000Z",
  "_published": "2026-09-30T09:05:52.025Z",
  "_jobs": [
    {
      "job": 109804498187,
      "time": 157,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11085376924"
    },
    {
      "job": 109804498105,
      "time": 182,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11084374748"
    },
    {
      "job": 109804498327,
      "time": 110,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11086638897"
    },
    {
      "job": 109804498124,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11086783149"
    },
    {
      "job": 109803366488,
      "time": 205,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11085058689"
    },
    {
      "job": 109804497977,
      "time": 136,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11085237537"
    },
    {
      "job": 109804498039,
      "time": 98,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11085616133"
    },
    {
      "job": 109804498092,
      "time": 103,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11084509466"
    },
    {
      "job": 109804498034,
      "time": 110,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11085207963"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204",
  "_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": 925
  },
  "_downloads": {
    "count": 12122,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/prediction"
  },
  "_mentions": 18,
  "_devurl": "https://github.com/bbolker/prediction",
  "_searchresults": 0,
  "_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/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"
    }
  ],
  "_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": 6.4637855213855975,
  "_indexed": true,
  "_nocasepkg": "prediction",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-09-30T08:30:58.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/2b6b5eef12a42fd31e8ae5f1f3a0775ff81c4bab1ae88ae159b56607f0c3d587",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-09-30T08:31:15.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/d34fa6ea516a310db36c4f8688024cfc85b83b49576b36d724089a494631aa2a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-09-30T09:05:07.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/7ebd89acefb418be4f93fc7d88adc3a63ffc831c2095a5fbd54d9ad7222a4333",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-09-30T09:03:53.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/e482987d292c368a313db4e4eea383213e140a7ccc7c2985447a9e16837241dc",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.18",
      "date": "2026-09-30T08:30:57.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/af6969c458878bc2f210ba81fa9f2fa79e154dd842abd3ef09d47ea01bb2aac2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-09-30T08:29:48.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/b1b993c9a0126b25ef8acc7709423fa497ad3d2c5b0b41cb2bcc3016a67ff39a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-09-30T08:29:54.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/ae75ccf579375aa8996f8bd9902ad26f090bb6d26104c7593138cac4b93f9771",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-09-30T08:30:03.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/f530b1fd7aa5f4c5fff949e20d4f9af30f95da83e5b52cb260ab06edcc6bcea4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/36689495204"
    }
  ]
}