Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 39572e1

Browse files
committed
Rel 0.1.0
1 parent f4ba65d commit 39572e1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
StructuralCausalModels.jl is part of the StatisticalRethinkingJulia eco system and contains functionality to analyse directed acyclic graph (DAG) based causal models as described in [StatisticalRethinking](https://xcelab.net/rm/statistical-rethinking/), [Causal Inference in Statistics](http://bcs.wiley.com/he-bcs/Books?action=index&bcsId=10288&itemId=1119186846) and [Cause and Correlation in Biology](https://www.cambridge.org/core/books/cause-and-correlation-in-biology/247799189B31939D24BC0F61FD59E9BB#).
1818

19-
My initial goal for this package is to have a way to apply SCM ideas to the examples in [StatisticalRethinking.jl](https://github.com/StatisticalRethinkingJulia), i.e. a working version of `basis_set()`, `d_separation()` and `adjustment_sets()`.
19+
My initial goal for this package is to have a way to apply SCM ideas to the examples in [StatisticalRethinking.jl](https://github.com/StatisticalRethinkingJulia), i.e. a working version of `basis_set()`, `d_separation()` `m_separations()` and `adjustment_sets()`.
20+
21+
From the point of view of above functionality, I believe the package is close to R's `ggm` (including most of Sadeghi's additions). I'm hoping version 1.0.0 has a similar API but many more test cases, including more comparisons with R's `dagitty`.
2022

2123
StructuralCausalModels.jl will be registered and, once registered, can be installed using
2224
`] add StructuralCausalModels`.

src/methods/m_separation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function m_separation(d::DAG, f::SymbolList, s::SymbolList;
7575
debug && println("ar = $ar")
7676
end
7777

78-
all(ar[f, s] + ar[s, f] .== 0)
78+
all(Array(ar[f, s]) + Array(ar[s, f]) .== 0)
7979
end
8080

8181
export

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=true)
23+
ms1 = m_separation(dag, f, s; debug=false)
2424
ms2 = m_separation(dag, f, s; c=c)
2525

2626
@testset "m_separation" begin

0 commit comments

Comments
 (0)