Skip to content

Commit 24f1ca2

Browse files
committed
Rel 0.1.0
1 parent de319ab commit 24f1ca2

4 files changed

Lines changed: 27 additions & 18 deletions

File tree

TODO.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,10 @@
22

33
A lot!
44

5-
1. GraphViz (and LightGraph?) plots from the DAG model.
5+
1. GraphViz (and LightGraph?) plots from the DAG (and MC) model.
66
2. @DAG (vs. the current Dict formulation).
7-
3. Method `adjustment_sets(dag, paths)` - options for conditioning
8-
4. Method `impliedConditionalIndependencies()`
9-
7. Other mixed graphs based on Sadeghi work for ggm
10-
8. Documentation
11-
9. Tests
12-
10. ...
13-
14-
15-
More testing:
16-
17-
1. Method `all_paths(dag, :x, :y)` - find all paths between nodes :f and :l.
18-
2. Method `backdoor_paths(dag, paths, :x)` - which are backdoor paths to :x?
19-
3. Method `open_paths(dag, paths)` - which paths are open?
20-
4. Method `show_dag_path(dag, path)` - show path directions using arrows
21-
5. Dagitty & ggm conversion routines
22-
6. ...
7+
3. Latent variable support.
8+
4. AG/MC graphs and m_separation.
9+
5. MCMC based pcor_test().
10+
5. ...
2311

docs/src/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ All three above references are great introductions to the use of causal models t
99
[StructuralCausalModels.jl](https://github.com/StatisticalRethinkingJulia/StructuralCausalModels.jl) is part of the [StatisticalRethinkingJulia](https://github.com/StatisticalRethinkingJulia) eco system. The package, once registered, can be installed using `] add StructuralCausalModels`.
1010

1111
Please report issues (or file a pull request) on Github if you find a problem.
12+
13+
Note: Version 0.1.0 of StructuralCausalModels.jl does not support latent variables.

docs/src/versions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
1. Version for initial commit to Julia's registry.
66
2. Introduction of basic functionality.
7+
3. *No* support latent variables.

docs/src/walkthrough.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,21 @@ Rows ╲ Cols │ :mechanics :vectors :algebra :analysis :statistic
7575

7676
```
7777

78-
Additional DAG related functions are `adjacency_matrix()`, `edge_matrix()`, `to_ggm()`, `from_ggm()`, `to_dagitty()`, `from_dagitty()`, `set_dag_df!()` and `set_dag_cov_matrix!()`.
78+
Additional DAG related functions are `adjacency_matrix()`, `edge_matrix()` and `dag_vars()`.
79+
80+
# Importing from and exporting to [dagitty.net](http://www.dagitty.net/dags.html#), dagitty and ggm (both are R packages)
81+
82+
Importing is easiest using the functions `from_dagitty()` and `from_ggm()` as shown above.
83+
84+
To export to dagitty.net, copy and paste the output from `to_dagitty()` into the `Model code` field on the dagitty.net web interface.
85+
86+
For both R packages, copy the output from `to_dagitty()` or `to_ggm()` to R.
87+
88+
# Adding a observations DataFrame or a covariance matrix
89+
90+
Use `set_dag_df!()` and `set_dag_cov_matrix!()` for this. Note that if a DataFrame is added a covariance matrix is computed.
91+
92+
Although this initial version of StructuralCausalModels does not support latent variables yet, by using the keyword argument `force=true` no check is performed if all vertices/variables in the causal diagram are present in the DataFrame or covariance matrix.
7993

8094
# Directed separation
8195

@@ -174,6 +188,10 @@ display(t)
174188

175189
# Adjustment sets
176190

191+
D_separation provides a set of conditional independencies given the causal model. The conditioning set closes (blocks) all paths. It provides ways to test the chosen causal model given observational data.
192+
193+
The function `adjustment_sets()` answers a related question, i.e. how to prevent confounding in multiple regression models assuming the chosen causal model is correct.
194+
177195
Setup the WaffleDivorce example from StatisticalRethinking:
178196
```julia
179197
using StructuralCausalModels

0 commit comments

Comments
 (0)