Learn R Programming

dagitty (version 0.3-4)

Graphical Analysis of Structural Causal Models

Description

A port of the web-based software 'DAGitty', available at , 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.

Copy Link

Version

Install

install.packages('dagitty')

Monthly Downloads

8,348

Version

0.3-4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 7th, 2023

Functions in dagitty (0.3-4)

ancestorGraph

Ancestor Graph
AncestralRelations

Ancestral Relations
as.dagitty

Convert to DAGitty object
EquivalentModels

Generating Equivalent Models
dconnected

d-Separation
downloadGraph

Load Graph from dagitty.net
VariableStatus

Variable Statuses
backDoorGraph

Back-Door Graph
adjustmentSets

Covariate Adjustment Sets
completeDAG

Generate Complete DAG
getExample

Get Bundled Examples
lavaanToGraph

Convert Lavaan Model to DAGitty Graph
measurementPart

Extract Measurement Part from Structural Equation Model
simulateLogistic

Simulate Binary Data from DAG Structure
moralize

Moral Graph
localTests

Test Graph against Data
convert

Convert from DAGitty object to other graph types
graphLayout

Generate Graph Layout
canonicalize

Canonicalize an Ancestral Graph
edges

Graph Edges
exogenousVariables

Retrieve Exogenous Variables
dagitty

Parse DAGitty Graph
instrumentalVariables

Find Instrumental Variables
impliedCovarianceMatrix

Implied Covariance Matrix of a Gaussian Graphical Model
coordinates

Plot Coordinates of Variables in Graph
plotLocalTestResults

Plot Results of Local Tests
isAdjustmentSet

Adjustment Criterion
names.dagitty

Names of Variables in Graph
orientPDAG

Orient Edges in PDAG.
randomDAG

Generate DAG at Random
isCollider

Test for Colliders
topologicalOrdering

Get Topological Ordering of DAG
simulateSEM

Simulate Data from Structural Equation Model
structuralPart

Extract Structural Part from Structural Equation Model
toMAG

Convert DAG to MAG.
vanishingTetrads

List Implied Vanishing Tetrads
graphType

Get Graph Type
impliedConditionalIndependencies

List Implied Conditional Independencies
is.dagitty

Test for Graph Class
isAcyclic

Test for Cycles
paths

Show Paths
plot.dagitty

Plot Graph