Code Monkey home page Code Monkey logo

dagitty's Introduction

dagitty

This is a collection of algorithms, a GUI frontend and an R package for analzing graphical causal models (DAGs).

The main componsents of the repository arre:

  • jslib: a JavaScript library implementing many DAG algorithms. This library underpins both the web interface and the R package, but could also be used independently, like in node.js.
  • gui: HTML interface for a GUI that exposes most of the functions in the JavaScript library.
  • r: R package that exposes most of the functions in the JavaScript library.
  • website: The current content of dagitty.net, including a version of the GUI (which may be older than the one in gui.
  • doc: LaTeX source of the dagitty PDF documentation.

Running the web interface locally

Clone the repository and open the file gui/dags.html in your web browser. Currently most functionality should work locally, but you will need an internet connection if you want to load or save DAG models on dagitty.net.

Running the R package

The R package can be installed from CRAN, but this version is not updated very frequently. If you want to install the most recent version of the dagitty R package, you can:

install.packages("remotes") # unless you have it already
remotes::install_github("jtextor/dagitty/r")

If you encounter any problems installing the R package, it is probably not due to dagitty itself, but due to the package "V8" that it depends on. I may try to remove this dependence in a future version.

More information

You can get more information on dagitty at dagitty.net and dagitty.net/learn. The R package is documented through the standard R interface. There are also a few papers available:

  1. Textor, J., van der Zander, B., Gilthorpe, M. S., Liśkiewicz, M., & Ellison, G. T. H. (2017). Robust causal inference using directed acyclic graphs: the R package ‘dagitty.’ In International Journal of Epidemiology (p. dyw341). Oxford University Press (OUP). https://doi.org/10.1093/ije/dyw341

  2. Ankan, A., Wortel, I. M. N., & Textor, J. (2021). Testing Graphical Causal Models Using the R Package “dagitty.” In Current Protocols (Vol. 1, Issue 2). Wiley. https://doi.org/10.1002/cpz1.45

dagitty's People

Contributors

ankurankan avatar benibela avatar dmurdoch avatar jeroen avatar jtextor avatar malcolmbarrett avatar nickch-k avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.