{
  "_id": "6a1ef46ab401979e73415fa2",
  "Package": "margins",
  "Type": "Package",
  "Title": "Marginal Effects for Model Objects",
  "Description": "An R port of Stata's 'margins' command, which can be used\nto calculate marginal (or partial) effects from model objects.",
  "License": "MIT + file LICENSE",
  "Version": "0.3.26",
  "Date": "2021-01-10",
  "Authors@R": "c(person(\"Thomas J.\", \"Leeper\",\nrole = c(\"aut\", \"cre\"),\nemail = \"thosjleeper@gmail.com\",\ncomment = c(ORCID = \"0000-0003-4097-6326\")),\nperson(\"Jeffrey\", \"Arnold\",\nrole = c(\"ctb\"),\nemail = \"jeffrey.arnold@gmail.com\"),\nperson(\"Vincent\", \"Arel-Bundock\",\nrole = c(\"ctb\")),\nperson(\"Jacob A.\", \"Long\",\nrole = c(\"ctb\"),\nemail = \"long.1377@osu.edu\",\ncomment = c(ORCID = \"0000-0002-1582-6214\"))\n)",
  "URL": "https://github.com/leeper/margins",
  "BugReports": "https://github.com/leeper/margins/issues",
  "ByteCompile": "true",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.1.0",
  "Repository": "https://blaserlab.r-universe.dev",
  "Date/Publication": "2021-01-21 22:54:28 UTC",
  "RemoteUrl": "https://github.com/leeper/margins",
  "RemoteRef": "HEAD",
  "RemoteSha": "bd374239f5da0a92e8e27d093785850933fdfa9e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 07:12:13 UTC",
    "User": "root"
  },
  "Author": "Thomas J. Leeper [aut, cre] (ORCID:\n<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>)",
  "Maintainer": "Thomas J. Leeper <thosjleeper@gmail.com>",
  "MD5sum": "86623fd41cf68ab823e4c0d2247deeb2",
  "_user": "blaserlab",
  "_type": "src",
  "_file": "margins_0.3.26.tar.gz",
  "_fileid": "424b1231a34c1c4e16c656473d1754f5bb4571ab719b8fde0c386158abe53379",
  "_filesize": 2992588,
  "_sha256": "424b1231a34c1c4e16c656473d1754f5bb4571ab719b8fde0c386158abe53379",
  "_created": "2026-05-19T07:12:13.000Z",
  "_published": "2026-06-02T15:19:06.433Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79105937911,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7077109596"
    },
    {
      "job": 79105938000,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7077108657"
    },
    {
      "job": 79105937627,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7077102172"
    },
    {
      "job": 79105938066,
      "time": 98,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7077089348"
    },
    {
      "job": 79105937369,
      "time": 227,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7077060166"
    },
    {
      "job": 79105936804,
      "time": 129,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361992121"
    },
    {
      "job": 79105937543,
      "time": 108,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7077092791"
    },
    {
      "job": 79105937632,
      "time": 132,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7077099688"
    },
    {
      "job": 79105937477,
      "time": 116,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7077094640"
    }
  ],
  "_buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/leeper/margins",
  "_commit": {
    "id": "bd374239f5da0a92e8e27d093785850933fdfa9e",
    "author": "Thomas J. Leeper <thosjleeper@gmail.com>",
    "committer": "Thomas J. Leeper <thosjleeper@gmail.com>",
    "message": "misc fixes for R CMD check\n",
    "time": 1611269668
  },
  "_maintainer": {
    "name": "Thomas J. Leeper",
    "email": "thosjleeper@gmail.com",
    "login": "leeper",
    "orcid": "0000-0003-4097-6326",
    "description": "Behavioral scientist and R hacker",
    "uuid": 3505428
  },
  "_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": "leeper",
  "_selfowned": false,
  "_usedby": 7,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "glm",
    "linear-models",
    "marginal-effects",
    "partial-effects",
    "regression",
    "stata-command"
  ],
  "_stars": 265,
  "_contributors": [
    {
      "user": "leeper",
      "count": 369,
      "uuid": 3505428
    },
    {
      "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": 62366303,
    "type": "user",
    "name": "Brad Blaser",
    "description": "Experimental Hematologist and Fish Fancier"
  },
  "_downloads": {
    "count": 19655,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/margins"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/leeper/margins",
  "_searchresults": 1496,
  "_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": false,
  "_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/leeper/margins/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/leeper/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",
      "headings": [],
      "created": "2014-12-19 14:37:22",
      "modified": "2021-01-10 12:18:46",
      "commits": 26
    }
  ],
  "_score": 11.712180364144878,
  "_indexed": false,
  "_nocasepkg": "margins",
  "_universes": [
    "blaserlab"
  ],
  "_indexurl": "https://bbolker.r-universe.dev/margins",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.26",
      "date": "2026-05-19T07:14:47.000Z",
      "distro": "noble",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "1a8a2fc7ce919c68b6cbe41c470fff2e104e66b51e2c314d3e735ffc719c3280",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.26",
      "date": "2026-05-19T07:14:38.000Z",
      "distro": "noble",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "9456c2d01c9222c90e05c224d47ecb8721cbda8c87c9ed18e6c17a1c5b067f0b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.26",
      "date": "2026-05-19T07:14:18.000Z",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "60f981a756f5f32f98cd4eee3606ac4d9c4763ecd72936330bd384b3345ab11e",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.26",
      "date": "2026-05-19T07:13:45.000Z",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "352b8117bd15aeb657994c91f7c3f34334ca283fa9223c8acd2914768a42b2ed",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.26",
      "date": "2026-05-19T07:13:36.000Z",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "46c570b387c2bbabaa1f1aded6056feb45d054fda33be0ca715b446f0fb4beb0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.26",
      "date": "2026-05-19T07:13:59.000Z",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "c62efec8b2ca09ca921d318f801e25749fabff4f964b4dce807e45c01a18436b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.26",
      "date": "2026-05-19T07:13:37.000Z",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "4b4912f794d6e51255272475e8ce81d020b048de77b680c5e87423c95282cfe5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.26",
      "date": "2026-06-02T15:18:34.000Z",
      "commit": "bd374239f5da0a92e8e27d093785850933fdfa9e",
      "fileid": "2e8b58731904647b7d005e32579429c476ce82589c64a5fd43130978c3b0ec14",
      "status": "success",
      "buildurl": "https://github.com/r-universe/blaserlab/actions/runs/26081983442"
    }
  ]
}