Package: margins 0.3.26

Thomas J. Leeper

margins: Marginal Effects for Model Objects

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

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

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

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

Peer review:

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

On CRAN:

glmlinear-modelsmarginal-effectspartial-effectsregressionstata-command

10.37 score 262 stars 1 packages 756 scripts 11k downloads 3 mentions 7 exports 3 dependencies

Last updated 4 years agofrom:bd374239f5. Checks:OK: 3 WARNING: 2 NOTE: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winWARNINGNov 02 2024
R-4.5-linuxWARNINGNov 02 2024
R-4.4-winNOTENov 02 2024
R-4.4-macNOTENov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:cplotdydxfind_datamarginal_effectsmarginsmargins_summaryprediction

Dependencies:data.tableMASSprediction

Comparison with Stata's 'margins' command

Rendered fromStata.Rmdusingknitr::rmarkdownon Nov 02 2024.

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

An Introduction to 'margins'

Rendered fromIntroduction.Rmdusingknitr::rmarkdownon Nov 02 2024.

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

Technical Implementation Details

Rendered fromTechnicalDetails.Rnwusingknitron Nov 02 2024.

Last update: 2021-01-10
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