Skip to content

modmarg

Calculating Marginal Effects and Levels with Errors

v0.9.6 · Nov 22, 2020 · GPL-3

Description

Calculate predicted levels and marginal effects, using the delta method to calculate standard errors. This is an R-based version of the 'margins' command from Stata.

Downloads

239

Last 30 days

18043rd

653

Last 90 days

2.6K

Last year

Trend: +54.2% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘modmarg-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: marg.ivreg
> ### Title: Predicted Margins for 'ivreg' objects from the 'AER' package
> ### Aliases: marg.ivreg
> 
> ### ** Examples
> 
> # From ?AER::ivreg
> 
> # data
> data("CigarettesSW", package = "AER")
Error in find.package(package, lib.loc, verbose = verbose) : 
  there is no package called ‘AER’
Calls: data -> find.package
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Version History

6 tracked
new 0.9.6 Mar 10, 2026
updated 0.9.6 ← 0.9.2 diff Nov 21, 2020
updated 0.9.2 ← 0.9.0 diff Jan 31, 2018
updated 0.9.0 ← 0.6.0 diff Oct 28, 2017
updated 0.6.0 ← 0.5.0 diff Aug 12, 2017
new 0.5.0 Jun 4, 2017