Simulate Data from a (Time-Dependent) Causal DAG
Overview
Simulate complex data from a given directed acyclic graph and information about each individual node. Root nodes are simply sampled from the specified distribution. Child Nodes are simulated according to one of many implemented regressions, such as logistic regression, linear regression, poisson regression or any other function. Also includes a comprehensive framework for discrete-time simulation, discrete-event simulation, and networks-based simulation which can generate even more complex longitudinal and dependent data. For more details, see Robin Denz, Nina Timmesfeld (2026) doi:10.18637/jss.v116.i02.
Bug Fixes
- Temporary fix for a bug caused by changes in
lme4, which in turn caused a bug in thesimrpackage. Installingsimrfrom github already fixes the issue, so this update was made solely to retainsimDAGon CRAN.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-06
- ERROR11 OK, 2 ERROR2026-07-18
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK13 OK2026-05-02
Show 5 earlier changesHide 5 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-04-04
- ERROR13 OK, 1 ERROR2026-03-28
- OK14 OK2026-03-18
- ERROR9 OK, 5 ERROR2026-03-10
Documentation
- Help pages
- 43includes a package overview page
- Examples that run
- 100%42 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 28%
- JoSS Paper
- simDAG Cookbook
- Simulating Covid-19 Vaccine Data using a Discrete-Time Simulation
- Simulating Data from a DAG with Network Dependencies
- Simulating Data from a known DAG
- Simulating Data using a Discrete-Event Approach
- Simulating Data using a Discrete-Time Approach
- Specifying Custom Node Types in a DAG
- Specifying Formulas in a DAG
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Releases over time
Issues over time
Commits over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/robindenz1/simdag on 2026-10-22.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2026-10-15 · The repository has a site deploy workflow
pkgdown site last built 2026-10-15
Show all practicesHide 2 practices
Dependencies
Installing simDAG adds 56 packages (36 with compiled code, 59 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.0.1Latest
- 1.0.02026-05-14 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.5.22026-03-30 · diff ↗
- 0.5.1
- 0.5.0
- 0.4.12025-10-15 · diff ↗
- 0.4.0
- 0.3.22025-06-24 · diff ↗
- 0.3.12025-05-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.02025-03-30 · diff ↗ ·
added 7 exports
node_aftreg, node_ahreg, node_ehreg, node_mixture, node_poreg, node_ypreg, node_zeroinfl - 0.2.22025-02-23 · diff ↗
- 0.2.1
- 0.2.02024-09-03 · diff ↗
- 0.1.22024-06-13 · diff ↗
Package metadata
- First published
- 2023-08-28
- Total releases
- 16 / 3 yrs
- License
- GPL (>= 3) OSI
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("simDAG")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v116.i02.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.