Skip to content

dagitty

Graphical Analysis of Structural Causal Models

v0.3-4 · Dec 7, 2023 · GPL-2

Description

A port of the web-based software 'DAGitty', available at <https://dagitty.net>, for analyzing structural causal models (also known as directed acyclic graphs or DAGs). This package computes covariate adjustment sets for estimating causal effects, enumerates instrumental variables, derives testable implications (d-separation and vanishing tetrads), generates equivalent models, and includes a simple facility for data simulation.

Downloads

CRAN

13.9K

Last 30 days

1000th

73.4K

Last 90 days

691.5K

Last year

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

r2u CRAN

24

Last 30 days

100

Last 90 days

391

Last year

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

autoCRAN

1

Last 7 days

1

Last 30 days

0

All-time

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

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
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 details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Johannes Textor <johannes.textor@gmx.de>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Johannes",
                      family = "Textor",
                      role = c("aut", "cre"),
                      email = "johannes.textor@gmx.de"),
               person(given = "Benito",
                      family = "van der Zander",
                      role = "aut"),
               person(given = "Ankur",
                      family = "Ankan",
                      role = "aut"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Johannes Textor <johannes.textor@gmx.de>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Johannes",
                      family = "Textor",
                      role = c("aut", "cre"),
                      email = "johannes.textor@gmx.de"),
               person(given = "Benito",
                      family = "van der Zander",
                      role = "aut"),
               person(given = "Ankur",
                      family = "Ankan",
                      role = "aut"))
as necessary.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Johannes Textor <johannes.textor@gmx.de>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Johannes",
                      family = "Textor",
                      role = c("aut", "cre"),
    
...[truncated]...
          person(given = "Benito",
                      family = "van der Zander",
                      role = "aut"),
               person(given = "Ankur",
                      family = "Ankan",
                      role = "aut"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Johannes Textor <johannes.textor@gmx.de>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Johannes",
                      family = "Textor",
                      role = c("aut", "cre"),
    
...[truncated]...
          person(given = "Benito",
                      family = "van der Zander",
                      role = "aut"),
               person(given = "Ankur",
                      family = "Ankan",
                      role = "aut"))
as necessary.

Code

Structure

Lines of code

5,229

Files

69

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,242 (62%)Tests 238 (4.6%)Docs 1,636 (31.3%)Vignettes 113 (2.2%)

API

Exported functions

60

Internal functions

58

Recent export changes

v0.3-4+2 convert, findCycle
v0.3-0+10 ciTest, completeDAG, impliedCovarianceMatrix +7 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.07

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

12.5%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

33.3%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.0.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2016-03-23

Latest release

2023-12-07

Avg cadence

184 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1-9: 3,521 LOCv0.1-10: 3,521 LOCv0.2-2: 3,733 LOCv0.3-0: 4,722 LOCv0.3-1: 4,799 LOCv0.3-4: 5,229 LOC

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

Reverse Dependencies (21)

Dependency Network

Dependencies Reverse dependencies V8 jsonlite boot MASS DAGassist SEMgraph causalPAF dagwood dcmstan epicmodel episensr ggdag midoc simDAG theorytools CLRtools caugi cfid cia +6 more reverse deps dagitty

Version History

7 tracked
new 0.3-4 Mar 10, 2026
updated 0.3-4 ← 0.3-1 diff Dec 6, 2023
updated 0.3-1 ← 0.3-0 diff Jan 20, 2021
updated 0.3-0 ← 0.2-2 diff Jul 20, 2020
updated 0.2-2 ← 0.1-10 diff Aug 25, 2016
updated 0.1-10 ← 0.1-9 diff Mar 25, 2016
new 0.1-9 Mar 22, 2016