{
  "_id": "6ac8da93de46216d5edd8716",
  "Package": "margins",
  "Type": "Package",
  "Title": "Marginal Effects for Model Objects",
  "Description": "An R port of the margins command from 'Stata', which can\nbe used to calculate marginal (or partial) effects from model\nobjects.",
  "License": "MIT + file LICENSE",
  "Version": "0.3.28",
  "Authors@R": "c(person(\"Thomas J.\", \"Leeper\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-4097-6326\")),\nperson(\"Jeffrey\", \"Arnold\",\nrole = c(\"ctb\")),\nperson(\"Vincent\", \"Arel-Bundock\",\nrole = c(\"ctb\")),\nperson(\"Jacob A.\", \"Long\",\nrole = c(\"ctb\"),\ncomment = c(ORCID = \"0000-0002-1582-6214\")),\nperson(\"Ben\",\"Bolker\",email=\"bolker@mcmaster.ca\",\nrole=c(\"ctb\",\"cre\"),\ncomment=c(ORCID=\"0000-0002-2127-0443\"))\n)",
  "URL": "https://github.com/bbolker/margins",
  "BugReports": "https://github.com/bbolker/margins/issues",
  "ByteCompile": "true",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Repository": "https://bbolker.r-universe.dev",
  "Date/Publication": "2024-07-31 19:48:41 UTC",
  "RemoteUrl": "https://github.com/bbolker/margins",
  "RemoteRef": "HEAD",
  "RemoteSha": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-09 12:10:42 UTC",
    "User": "root"
  },
  "Author": "Thomas J. Leeper [aut] (ORCID: <https://orcid.org/0000-0003-4097-6326>),\nJeffrey Arnold [ctb],\nVincent Arel-Bundock [ctb],\nJacob A. Long [ctb] (ORCID: <https://orcid.org/0000-0002-1582-6214>),\nBen Bolker [ctb, cre] (ORCID: <https://orcid.org/0000-0002-2127-0443>)",
  "Maintainer": "Ben Bolker <bolker@mcmaster.ca>",
  "_user": "bbolker",
  "_type": "src",
  "_file": "margins_0.3.28.tar.gz",
  "_fileid": "https://r2.ropensci.org/7a92a81125be45156c4d803be64ee48759369fa93c793ac5ba70483f1992ed2a",
  "_filesize": 3000579,
  "_sha256": "7a92a81125be45156c4d803be64ee48759369fa93c793ac5ba70483f1992ed2a",
  "_expires": "2027-01-17T12:14:09.000Z",
  "_created": "2026-10-09T12:10:42.000Z",
  "_published": "2026-10-09T12:14:11.730Z",
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113812751274,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11615810040"
    },
    {
      "job": 113812751478,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11614684718"
    },
    {
      "job": 113812751427,
      "time": 104,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11614589894"
    },
    {
      "job": 113812751632,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11615366482"
    },
    {
      "job": 113811267741,
      "time": 254,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11614544652"
    },
    {
      "job": 113812751338,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11614564819"
    },
    {
      "job": 113812751467,
      "time": 84,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11615381365"
    },
    {
      "job": 113812751412,
      "time": 122,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11614549913"
    },
    {
      "job": 113812751308,
      "time": 116,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11614718482"
    }
  ],
  "_upstream": "https://github.com/bbolker/margins",
  "_commit": {
    "id": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
    "author": "Ben Bolker <bbolker@gmail.com>",
    "committer": "Ben Bolker <bbolker@gmail.com>",
    "message": "don't exclude inst/doc/Rmd in .Rbuildignore\n",
    "time": 1722455321
  },
  "_maintainer": {
    "name": "Ben Bolker",
    "email": "bolker@mcmaster.ca",
    "login": "bbolker",
    "description": "",
    "uuid": 78918,
    "orcid": "0000-0002-2127-0443"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "prediction",
      "version": ">= 0.3.6",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "gapminder",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "stargazer",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "AER",
      "role": "Enhances"
    },
    {
      "package": "betareg",
      "role": "Enhances"
    },
    {
      "package": "nnet",
      "role": "Enhances"
    },
    {
      "package": "ordinal",
      "role": "Enhances"
    },
    {
      "package": "survey",
      "role": "Enhances"
    }
  ],
  "_owner": "bbolker",
  "_selfowned": true,
  "_usedby": 7,
  "_updates": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "leeper",
      "count": 369,
      "uuid": 3505428
    },
    {
      "user": "bbolker",
      "count": 9,
      "uuid": 78918
    },
    {
      "user": "jacob-long",
      "count": 2,
      "uuid": 4957401
    },
    {
      "user": "jonrobinson2",
      "count": 2,
      "uuid": 3081884
    },
    {
      "user": "hughparsonage",
      "count": 1,
      "uuid": 8111628
    },
    {
      "user": "jedstephens",
      "count": 1,
      "uuid": 26483444
    },
    {
      "user": "philip-khor",
      "count": 1,
      "uuid": 35039795
    },
    {
      "user": "treysp",
      "count": 1,
      "uuid": 1831878
    },
    {
      "user": "dnbarron",
      "count": 1,
      "uuid": 1565592
    }
  ],
  "_userbio": {
    "uuid": 78918,
    "type": "user",
    "name": "Ben Bolker",
    "followers": 927
  },
  "_downloads": {
    "count": 12863,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/margins"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/bbolker/margins",
  "_searchresults": 1316,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/margins.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/bbolker/margins",
  "_realowner": "bbolker",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.0",
      "date": "2017-03-22"
    },
    {
      "version": "0.3.20",
      "date": "2018-04-24"
    },
    {
      "version": "0.3.23",
      "date": "2018-05-22"
    },
    {
      "version": "0.3.26",
      "date": "2021-01-22"
    },
    {
      "version": "0.3.26.1",
      "date": "2024-03-24"
    },
    {
      "version": "0.3.27",
      "date": "2024-06-14"
    },
    {
      "version": "0.3.28",
      "date": "2024-07-31"
    }
  ],
  "_exports": [
    "cplot",
    "dydx",
    "find_data",
    "marginal_effects",
    "margins",
    "margins_summary",
    "prediction"
  ],
  "_help": [
    {
      "page": "cplot",
      "title": "Conditional predicted value and average marginal effect plots for models",
      "topics": [
        "cplot",
        "cplot.clm",
        "cplot.default",
        "cplot.glm",
        "cplot.lm",
        "cplot.loess",
        "cplot.multinom",
        "cplot.polr"
      ]
    },
    {
      "page": "dydx",
      "title": "Marginal Effect of a Given Variable",
      "topics": [
        "dydx",
        "dydx.default",
        "dydx.factor",
        "dydx.logical",
        "dydx.ordered"
      ]
    },
    {
      "page": "persp",
      "title": "Perspective and heatmap/contour plots for models",
      "topics": [
        "image.glm",
        "image.lm",
        "image.loess",
        "persp.glm",
        "persp.lm",
        "persp.loess"
      ]
    },
    {
      "page": "marginal_effects",
      "title": "Differentiate a Model Object with Respect to All (or Specified) Variables",
      "topics": [
        "marginal_effects",
        "marginal_effects.clm",
        "marginal_effects.default",
        "marginal_effects.glm",
        "marginal_effects.lm",
        "marginal_effects.lmerMod",
        "marginal_effects.loess",
        "marginal_effects.margins",
        "marginal_effects.merMod",
        "marginal_effects.multinom",
        "marginal_effects.nnet",
        "marginal_effects.polr"
      ]
    },
    {
      "page": "margins",
      "title": "Marginal Effects Estimation",
      "topics": [
        "margins-package",
        "margins",
        "margins.betareg",
        "margins.clm",
        "margins.default",
        "margins.glm",
        "margins.lm",
        "margins.lmerMod",
        "margins.loess",
        "margins.merMod",
        "margins.multinom",
        "margins.nnet",
        "margins.polr",
        "margins.svyglm",
        "margins_summary"
      ]
    },
    {
      "page": "plot.margins",
      "title": "Plot Marginal Effects Estimates",
      "topics": [
        "plot.margins"
      ]
    }
  ],
  "_pkglogo": "https://github.com/bbolker/margins/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/bbolker/margins/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "MASS",
    "prediction"
  ],
  "_vignettes": [
    {
      "source": "Stata.Rmd",
      "filename": "Stata.html",
      "title": "Comparison with Stata's 'margins' command",
      "engine": "knitr::rmarkdown",
      "headings": [
        "OLS marginal effects",
        "Stata",
        "R",
        "OLS marginal effects with interaction",
        "OLS marginal effects with factor term",
        "OLS marginal effects with squared term",
        "OLS marginal effects with squared term (but no first-order term)",
        "Logit effects on log-odds and probability scales",
        "Logit effects with factor variable on log-odds and probability scales",
        "Logit with interaction on probability and Log-Odds scales",
        "Probit effects on latent and probability scales",
        "Poisson effects on latent and probability scales"
      ],
      "created": "2017-03-22 09:06:59",
      "modified": "2017-03-23 13:27:23",
      "commits": 3
    },
    {
      "source": "Introduction.Rmd",
      "filename": "Introduction.html",
      "title": "An Introduction to 'margins'",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "Using Optional Arguments in margins()",
        "Average Marginal Effects and Average Partial Effects",
        "Using the at Argument",
        "Subsetting",
        "Marginal Effects Plots",
        "The plot() method for \"margins\" objects",
        "More advanced plotting",
        "Interpreting Interactions with Marginal Effects",
        "Interactions in OLS",
        "ggplot2 examples",
        "Interactions in Logit",
        "References"
      ],
      "created": "2016-08-05 13:55:31",
      "modified": "2021-01-21 22:54:28",
      "commits": 18
    },
    {
      "source": "TechnicalDetails.Rnw",
      "filename": "TechnicalDetails.pdf",
      "title": "Technical Implementation Details",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2014-12-19 14:37:22",
      "modified": "2024-04-27 17:58:54",
      "commits": 27
    }
  ],
  "_score": 10.58424120913678,
  "_indexed": true,
  "_nocasepkg": "margins",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.28",
      "date": "2026-10-09T12:12:53.000Z",
      "distro": "resolute",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/fc5c0f5db0a2981136c2dc574fc9007a07cdc4b877da6a28658ef51b4e73e3a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.28",
      "date": "2026-10-09T12:13:16.000Z",
      "distro": "resolute",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/3a08ca8104d724084183f8a44480a024f41b5f33c185ab3b1d842d4b76d8ee78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.28",
      "date": "2026-10-09T12:12:31.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/c8b4af136950db10bd64ef02c6e968c4434e52606e05ea7df257927cf658bda4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.28",
      "date": "2026-10-09T12:12:37.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/f9f154266fa29c7ca332b5ab5b64261f6cd1d08eaf105cbdc69d252ae60de98b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.28",
      "date": "2026-10-09T12:12:59.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/77c61c9db2a408c3807e1baf64c790226902ec5dab448fb89614beef2849c2be",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-10-09T12:11:52.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/d4cb41dc3cde6d58875215006718ca902727d89eb25806f3c5987037cfe8e3d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-10-09T12:12:33.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/75145f78d9a3ff6c8edce7b0af0ac25a8987078e87056df408bd8ae416d78409",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-10-09T12:12:20.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/71f4b06dd6f2fa3d296c212ee50edbe2f8c1d56ab1dac81d12be3baf5a3c588c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/37927898015"
    }
  ]
}