Skip to content

Commit f4ba65d

Browse files
committed
Rel 0.1.0
1 parent d171ffa commit f4ba65d

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

docs/src/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
```@meta
22
CurrentModule = StructuralCausalModels
33
```
4+
## StructuralCausalModels
5+
```@docs
6+
StructuralCausalModels
7+
```
8+
9+
## SCM
10+
```@docs
11+
SCM
12+
```
413

514
## scm_path
615
```@docs
@@ -72,6 +81,7 @@ node_edges(p::Path, s::Symbol, l::Symbol)
7281
open_paths(d::DAG, paths::Vector{Vector{Symbol}}, cond::Vector{Symbol};debug=false)
7382
pcor(d::DAG, u::SymbolList)
7483
pcor_test(d::DAG, u::SymbolList, q, n)
84+
ribbon_graph(a::NamedArray{Int, 2}; m=Symbol[], c=Symbol[])
7585
sym_in_all_paths(paths, sym)
7686
syms_in_paths(paths, f, l)
7787
topological_order(a::NamedArray)

src/StructuralCausalModels.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
3-
# StructuralCausalModels (SCM)
3+
# StructuralCausalModels
44
55
StructuralCausalModels.jl provides functionality to analyse directed acyclic
66
graph (DAG) based causal models as described in `StatisticalRethinking`, `Causal
@@ -9,6 +9,8 @@ Inference in Statistics` and `Cause and Correlation in Biology`.
99
My initial goal for this package is to have a way to apply SCM ideas to the
1010
examples in the context of StatisticalRethinking, i.e. a working version of
1111
`basis_set()`, `d_separation()`, `m_separation()` and `adjustment_sets()`.
12+
13+
SCM can be used as an alias to StructuralCausalModels.
1214
"""
1315
module StructuralCausalModels
1416

@@ -23,6 +25,13 @@ src_path = @__DIR__
2325
using DocStringExtensions: SIGNATURES, FIELDS, TYPEDEF
2426

2527
const scm_src_path = @__DIR__
28+
29+
"""
30+
31+
SCM
32+
33+
Alias for StructuralCausalModels
34+
"""
2635
const SCM = StructuralCausalModels
2736

2837
"""

test/test_m_separation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ f = [:n1]
2020
s = [:n4]
2121
c = [:n3]
2222

23-
ms1 = m_separation(dag, f, s; debug=false)
23+
ms1 = m_separation(dag, f, s; debug=true)
2424
ms2 = m_separation(dag, f, s; c=c)
2525

2626
@testset "m_separation" begin

0 commit comments

Comments
 (0)