Skip to content

ggm

Graphical Markov Models with Mixed Graphs

v2.5.2 · Jul 25, 2025 · GPL-2

Description

Provides functions for defining mixed graphs containing three types of edges, directed, undirected and bi-directed, with possibly multiple edges. These graphs are useful because they capture fundamental independence structures in multivariate distributions and in the induced distributions after marginalization and conditioning. The package is especially concerned with Gaussian graphical models for (i) ML estimation for directed acyclic graphs, undirected and bi-directed graphs and ancestral graph models (ii) testing several conditional independencies (iii) checking global identification of DAG Gaussian models with one latent variable (iv) testing Markov equivalences and generating Markov equivalent graphs of specific types.

Downloads

CRAN

8.9K

Last 30 days

1237th

23.5K

Last 90 days

96.8K

Last year

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

r2u CRAN

18

Last 30 days

62

Last 90 days

268

Last year

Trend: +28.6% (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

data for ASCII and uncompressed saves

Fatal error: cannot create 'R_TempDir'
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

for unstated dependencies in examples

Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpGWadpl/file2369e032935b62/fitAncestralGraph.R': No space left on device
Error in file(out, "wt") : cannot open the connection
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

8,964

Files

87

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,632 (51.7%)Docs 4,332 (48.3%)

API

Exported functions

79

Internal functions

0

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

98.6%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

100%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

23

First release

2003-08-23

Latest release

2025-07-25

Avg cadence

77 days

Cold removal rate

100%

Dep drift

14

LOC over versions

v0.5: 2,805 LOCv0.8: 3,906 LOCv0.8-1: 3,907 LOCv1.0: 4,242 LOCv1.0.2: 4,285 LOCv1.0.3: 4,281 LOCv1.0.4: 4,282 LOCv1.99: 7,356 LOCv1.99-1: 8,326 LOCv1.99-2: 8,325 LOCv1.99-3: 8,418 LOCv1.99-5: 8,419 LOCv1.995-0: 8,409 LOCv1.995-2: 8,426 LOCv1.995-3: 8,439 LOCv1.995-5: 8,445 LOCv2.0: 8,448 LOCv2.1: 8,473 LOCv2.2: 8,523 LOCv2.3: 8,522 LOCv2.5: 11,604 LOCv2.5.1: 8,962 LOCv2.5.2: 8,964 LOC

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

Reverse Dependencies (8)

suggests

Dependency Network

Dependencies Reverse dependencies BiocManager graph igraph MoTBFs SEMgraph TGS pcalg pcgen phylopath pwSEM caugi ggm

Version History

24 tracked
new 2.5.2 Mar 10, 2026
updated 2.5.2 ← 2.5.1 diff Jul 24, 2025
updated 2.5.1 ← 2.5 diff Jan 24, 2024
updated 2.5 ← 2.3 diff Feb 15, 2020
updated 2.3 ← 2.2 diff Jan 20, 2015
updated 2.2 ← 2.1 diff Dec 3, 2014
updated 2.1 ← 2.0 diff May 18, 2014
updated 2.0 ← 1.995-5 diff Mar 20, 2014
updated 1.995-5 ← 1.995-3 diff Jan 14, 2014
updated 1.995-3 ← 1.995-2 diff Oct 4, 2012
updated 1.995-2 ← 1.995-0 diff Sep 13, 2012
updated 1.995-0 ← 1.99-5 diff Aug 23, 2012
updated 1.99-5 ← 1.99-3 diff Jun 18, 2012
updated 1.99-3 ← 1.99-2 diff Jun 13, 2012
updated 1.99-2 ← 1.99-1 diff Jan 11, 2012