{
  "_id": "6a22ac220ef520ea2f58bdd6",
  "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-06-05 10:55:30 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>",
  "MD5sum": "c07f6c72b00c7e89da12e6bce646c09a",
  "_user": "bbolker",
  "_type": "src",
  "_file": "margins_0.3.28.tar.gz",
  "_fileid": "8e46977657e00b090c12c88ceafb637c79d462a2142b96af493368f2e03ef64c",
  "_filesize": 3005104,
  "_sha256": "8e46977657e00b090c12c88ceafb637c79d462a2142b96af493368f2e03ef64c",
  "_created": "2026-06-05T10:55:30.000Z",
  "_published": "2026-06-05T10:59:46.283Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79713744975,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7434915335"
    },
    {
      "job": 79713744976,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434913093"
    },
    {
      "job": 79713744948,
      "time": 129,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7434928121"
    },
    {
      "job": 79713745030,
      "time": 125,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434932102"
    },
    {
      "job": 79713194267,
      "time": 235,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434869017"
    },
    {
      "job": 79713744955,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434904165"
    },
    {
      "job": 79713745035,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7434902962"
    },
    {
      "job": 79713744960,
      "time": 110,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7434901082"
    },
    {
      "job": 79713744962,
      "time": 108,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434900647"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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"
  },
  "_downloads": {
    "count": 20778,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/margins"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/bbolker/margins",
  "_searchresults": 1396,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/margins.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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.818132210441117,
  "_indexed": true,
  "_nocasepkg": "margins",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.28",
      "date": "2026-06-05T10:57:55.000Z",
      "distro": "noble",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "ab1b4fce520611b19b630172b004e3be7e26e6a33b8045383494b9e4f566669d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.28",
      "date": "2026-06-05T10:57:45.000Z",
      "distro": "noble",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "196471632aca009504b8ceffd07a34639a079ce618b713c86687b91a118599bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.28",
      "date": "2026-06-05T10:58:46.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "ff4bc958b5b564ac869063e06a1e2300800b5fdb23edd2fd6ba4014bcd38d228",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.28",
      "date": "2026-06-05T10:59:01.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "494effc57516f6cd62af27956dca5bb9c1c42c41a26dead407276b313ba82c1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.28",
      "date": "2026-06-05T10:57:52.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "f95aaecab6217569627d9736452070829f69b444c14779d6547bbca7fe5c4e08",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-06-05T10:56:57.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "c8ee5f63c2944f26a12b1381b83706140250716ce259b342dfa4e2e14f77b778",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-06-05T10:56:52.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "5e861de8db84027b453cf1f88cd94f238d640419700f631e46bc5ec67cbfc945",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-06-05T10:57:02.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "efd9a37543db05236fc2e91d71572b0264933e34f3ab8114abe4c3b66d65935b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/27010652785"
    }
  ]
}