{
  "_id": "6af05c51ef600c02c4068c00",
  "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-11-08 11:20:51 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/9a63233beea23e957e0acdbdab8604d9d37ae991c6123c73c61431d5d9b522ad",
  "_filesize": 3000633,
  "_sha256": "9a63233beea23e957e0acdbdab8604d9d37ae991c6123c73c61431d5d9b522ad",
  "_expires": "2027-02-16T11:26:07.000Z",
  "_created": "2026-11-08T11:20:51.000Z",
  "_published": "2026-11-08T11:26:09.081Z",
  "_upstream": "https://github.com/bbolker/margins",
  "_status": "success",
  "_maintainer": {
    "name": "Ben Bolker",
    "email": "bolker@mcmaster.ca",
    "login": "bbolker",
    "description": "",
    "uuid": 78918,
    "orcid": "0000-0002-2127-0443"
  },
  "_jobs": [
    {
      "job": 128715393240,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13614628827"
    },
    {
      "job": 128715393362,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13614977725"
    },
    {
      "job": 128715393495,
      "time": 273,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13615048714"
    },
    {
      "job": 128715393272,
      "time": 172,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13615121928"
    },
    {
      "job": 128714536389,
      "time": 214,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13615515746"
    },
    {
      "job": 128715393393,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13614914147"
    },
    {
      "job": 128715393279,
      "time": 92,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13614728475"
    },
    {
      "job": 128715393342,
      "time": 109,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13614864308"
    },
    {
      "job": 128715393267,
      "time": 109,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13615331460"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 926
  },
  "_downloads": {
    "count": 13218,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/margins"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/bbolker/margins",
  "_searchresults": 1604,
  "_rbuild": "4.6.2",
  "_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.682013161703425,
  "_indexed": true,
  "_nocasepkg": "margins",
  "_universes": [
    "bbolker"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.28",
      "date": "2026-11-08T11:23:13.000Z",
      "distro": "resolute",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/fdf7304ec247a100a5c927542c9806f83a10eff27e0ac157ea96aefed112787e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.3.28",
      "date": "2026-11-08T11:23:16.000Z",
      "distro": "resolute",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/f032f82fabbfa53d5fbb7ad50e9cd28d82ae2745afedde0a25ebe8bfd45a84f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.28",
      "date": "2026-11-08T11:24:21.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/03b371309d02eabb062e8d8136d3506892ebdc99bae6f793b44ef776a5e8fe30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.3.28",
      "date": "2026-11-08T11:23:04.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/d31a4b37ff0bf7409304a5f82208c9cde2e780d57a4e8cff86c0c96e14619c87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.28",
      "date": "2026-11-08T11:22:57.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/0b4997f34ff7413d0643c5877e73614a1abbd363696976287098a4a3be30018f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-11-08T11:21:58.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/1dac9d8e91e539211d9fec430f66615959cd0af9e887708ccf6f4466b34ebc57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-11-08T11:22:12.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/ea7910a156e86aa888a26cea33738fa42c18f74fb78b7fcab52d350e529fbaef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.3.28",
      "date": "2026-11-08T11:22:12.000Z",
      "commit": "9b649c95ba595c72f49fd6a2e2ea9c0370ec8e39",
      "fileid": "https://r2.ropensci.org/92ee7c99b50bfb70dbccf29e2fad68222d395ba91575cb1fabda0f4c0aab48b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bbolker/actions/runs/42475070225"
    }
  ]
}