Package: margins 0.3.28

margins: Marginal Effects for Model Objects

An R port of the margins command from 'Stata', which can be used to calculate marginal (or partial) effects from model objects.

Authors:Thomas J. Leeper [aut], Jeffrey Arnold [ctb], Vincent Arel-Bundock [ctb], Jacob A. Long [ctb], Ben Bolker [ctb, cre]

margins_0.3.28.tar.gz
margins_0.3.28.zip(r-4.5)margins_0.3.28.zip(r-4.4)margins_0.3.28.zip(r-4.3)
margins_0.3.28.tgz(r-4.4-any)margins_0.3.28.tgz(r-4.3-any)
margins_0.3.28.tar.gz(r-4.5-noble)margins_0.3.28.tar.gz(r-4.4-noble)
margins_0.3.28.tgz(r-4.4-emscripten)margins_0.3.28.tgz(r-4.3-emscripten)
margins.pdf |margins.html
margins/json (API)
NEWS

# Install 'margins' in R:
install.packages('margins', repos = c('https://bbolker.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/bbolker/margins/issues

On CRAN:

9.28 score 2 stars 1 packages 768 scripts 10k downloads 7 exports 3 dependencies

Last updated 3 months agofrom:9b649c95ba. Checks:OK: 6 ERROR: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-winERROROct 29 2024
R-4.5-linuxOKOct 29 2024
R-4.4-winOKOct 29 2024
R-4.4-macOKOct 29 2024
R-4.3-winOKOct 29 2024
R-4.3-macOKOct 29 2024

Exports:cplotdydxfind_datamarginal_effectsmarginsmargins_summaryprediction

Dependencies:data.tableMASSprediction

Comparison with Stata's 'margins' command

Rendered fromStata.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2017-03-23
Started: 2017-03-22

An Introduction to 'margins'

Rendered fromIntroduction.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2021-01-21
Started: 2016-08-05

Technical Implementation Details

Rendered fromTechnicalDetails.Rnwusingknitr::knitron Oct 29 2024.

Last update: 2024-04-27
Started: 2014-12-19

Readme and manuals

Help Manual

Help pageTopics
Conditional predicted value and average marginal effect plots for modelscplot cplot.clm cplot.default cplot.glm cplot.lm cplot.loess cplot.multinom cplot.polr
Marginal Effect of a Given Variabledydx dydx.default dydx.factor dydx.logical dydx.ordered
Perspective and heatmap/contour plots for modelsimage.glm image.lm image.loess persp.glm persp.lm persp.loess
Differentiate a Model Object with Respect to All (or Specified) Variablesmarginal_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
Marginal Effects Estimationmargins-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
Plot Marginal Effects Estimatesplot.margins