Skip to content

ergMargins

Process Analysis for Exponential Random Graph Models

v1.6.2 · Jun 17, 2026 · GPL (>= 2)

Description

Calculates marginal effects and conducts process analysis in exponential family random graph models (ERGM). Includes functions to conduct mediation and moderation analyses and to diagnose multicollinearity. URL: <https://github.com/sduxbury/ergMargins>. BugReports: <https://github.com/sduxbury/ergMargins/issues>. Duxbury, Scott W (2021) <doi:10.1177/0049124120986178>. Long, J. Scott, and Sarah Mustillo (2018) <doi:10.1177/0049124118799374>. Mize, Trenton D. (2019) <doi:10.15195/v6.a4>. Karlson, Kristian Bernt, Anders Holm, and Richard Breen (2012) <doi:10.1177/0081175012444861>. Duxbury, Scott W (2018) <doi:10.1177/0049124118782543>. Duxbury, Scott W, Jenna Wertsching (2023) <doi:10.1016/j.socnet.2023.02.003>. Huang, Peng, Carter Butts (2023) <doi:10.1016/j.socnet.2023.07.001>.

Downloads

CRAN

587

Last 30 days

5666th

1.8K

Last 90 days

7.7K

Last year

Trend: -5.3% (30d vs prior 30d)

r2u CRAN

11

Last 30 days

35

Last 90 days

125

Last year

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

autoCRAN

5

Last 7 days

10

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

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

package dependencies

Packages required but not available: 'ergm', 'btergm', 'sna'

Package suggested but not available for checking: ‘ergm.count’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

6,584

Files

33

Compiled share

0%

Has compiled src

No

Language breakdown

R 5,452 (82.8%)Docs 1,132 (17.2%)

API

Exported functions

9

Internal functions

14

Recent export changes

v1.6+1 GW_helper
v1.5+2 ergm.MSE, ergm.msma

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

9

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2019-07-26

Latest release

2026-06-18

Avg cadence

187 days

Cold removal rate

Dep drift

12

LOC over versions

v0.1.0: 2,557 LOCv0.1.1: 2,647 LOCv0.1.2: 2,646 LOCv0.1.3: 2,707 LOCv0.1.3.1: 2,937 LOCv1.1: 4,850 LOCv1.2: 4,853 LOCv1.3: 4,879 LOCv1.5: 6,363 LOCv1.6: 6,584 LOCv1.6.1: 6,584 LOCv1.6.2: 6,584 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies numDeriv ergm Matrix btergm dplyr sna network sampling netmediate ergMargins

Version History

13 tracked
updated 1.6.2 ← 1.6.1 diff Jun 18, 2026
new 1.6.1 Mar 10, 2026
updated 1.6.1 ← 1.6 diff Sep 12, 2025
updated 1.6 ← 1.5 diff Jun 12, 2025
updated 1.5 ← 1.3 diff Apr 3, 2025
updated 1.3 ← 1.2 diff May 7, 2024
updated 1.2 ← 1.1 diff Feb 23, 2024
updated 1.1 ← 0.1.3.1 diff Nov 11, 2023
updated 0.1.3.1 ← 0.1.3 diff May 7, 2023
updated 0.1.3 ← 0.1.2 diff Jun 29, 2021
updated 0.1.2 ← 0.1.1 diff Feb 22, 2021
updated 0.1.1 ← 0.1.0 diff May 21, 2020
new 0.1.0 Jul 25, 2019