{
  "_id": "6ae463bf95ca2370cc8cf469",
  "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-10-30 08:47:20 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/aad93d7c579432b33ebd7f49a4edf6fa39cce847188e3900f94cf62ab66be8c4",
  "_filesize": 222184,
  "_sha256": "aad93d7c579432b33ebd7f49a4edf6fa39cce847188e3900f94cf62ab66be8c4",
  "_expires": "2027-02-07T09:30:37.000Z",
  "_created": "2026-10-30T08:47:20.000Z",
  "_published": "2026-10-30T09:30:39.197Z",
  "_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": 123973508788,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12964518104"
    },
    {
      "job": 123973508792,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12964444602"
    },
    {
      "job": 123973508873,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "12966673486"
    },
    {
      "job": 123973508957,
      "time": 131,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12967585446"
    },
    {
      "job": 123972403133,
      "time": 177,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12965136197"
    },
    {
      "job": 123973508794,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12965505334"
    },
    {
      "job": 123973508932,
      "time": 91,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12965275686"
    },
    {
      "job": 123973508911,
      "time": 117,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "12965101067"
    },
    {
      "job": 123973508906,
      "time": 80,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12965305888"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112",
  "_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": 926
  },
  "_downloads": {
    "count": 11723,
    "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/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": 7.579583775192683,
  "_indexed": true,
  "_nocasepkg": "prediction",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-10-30T08:49:49.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/c77a1fad7aed42768b9c31ec9d01eece5f84b6bd72d573cf3707d70628f32fc1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.18",
      "date": "2026-10-30T08:50:04.000Z",
      "distro": "resolute",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/c9d0df92cfeeb0562ab7065b3f9373aa79ffea98aad247cdd38d6c36594b7949",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-10-30T09:27:21.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/553b15cf710c5acc7047f40991e5c5c0e86438a7b90428687b34e4e49f6456f3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.18",
      "date": "2026-10-30T09:29:48.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/691fede2b4584ebe2a0bf2b160d6a8aef8b4220c8fde2effb511a0206699352e",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.18",
      "date": "2026-10-30T08:49:55.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/6bd8431010682229af61b1d01dae353b7d6b536a7f6bb5cfa7e1efe8cfd883a4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-10-30T08:48:48.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/fffad6e94219ce3e74410e51f7a9ca89a529b9239ba835bcce5b4debffa248f0",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-10-30T08:49:04.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/0bf8f2b5265ff8a2eeab694af1586c2d1b0e20fc9fd84c8ad4c7bc4039e1b1e3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.18",
      "date": "2026-10-30T08:48:45.000Z",
      "commit": "4b7f86d3ab7a1f40f61ea830212b9e1675ef1544",
      "fileid": "https://r2.ropensci.org/0a26683019264f5fb7ba206d9341081bccaf9002b73707370670df7662f81fdd",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/41028489112"
    }
  ]
}