Skip to content
/ daggle Public

The daggle app—a tool to support learning and teaching the graphical rules of selecting adjustment variables using directed acyclic graphs (DAGs).

License

Notifications You must be signed in to change notification settings

CBDRH/daggle

Repository files navigation

Daggle

R-CMD-check Lifecycle: experimental Codecov test coverage

Introduction

The daggle package is a Golem—a shiny app shipped in an R package. The app source code can be found here on GitHub but the daggle app can be accessed online at http://cbdrh.shinyapps.io/daggle.

The aim of the daggle app is to support people teaching and learning the basic rules of using directed acyclic graphs (DAGs) to identify minimally sufficient adjustment sets when estimating causal effects.

Features

The application offers two modes: tutorial and random. The tutorial mode presents a guided introduction to how common causal structures can be presented using DAGs and how graphical rules can be used to identify minimally sufficient adjustment sets for causal estimation. The random mode tests this understanding by presenting the user with a randomly generated DAG—a daggle. To solve the daggle, users must correctly identify a valid minimally sufficient adjustment set.

Users solve the daggle by selecting a minimally sufficient adjustment set that would allow the the specified effect of an exposure X on an outcome Y to be estimated without bias. Tapping or clicking on a node turns the node from a light grey circle to a pick square, and indicates that the variable should be adjusted for in the analysis. The effect of interest can specified as the total effect of direct effect. Users can also change the number of nodes and complexity of the randomly generated DAGs

A screenshot of the daggle app in tutorial mode.

In this daggle, users must select a minimal adjustment set to identify the total effect of X on Y. Here, the nodes Z2 and Z3 can be selected. You can try to solve this daggle online here: cbdrh.shinyapps.io/daggle/?values&id=145590

Installation

You can install the development version of daggle from GitHub with:

# install.packages("devtools")
devtools::install_github("CBDRH/daggle")

Publication

coming soon

About

The daggle app—a tool to support learning and teaching the graphical rules of selecting adjustment variables using directed acyclic graphs (DAGs).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published