Skip to content

Commit 08a948c

Browse files
committed
Rel 0.1.0 - Initial release
1 parent 3ce7363 commit 08a948c

File tree

13 files changed

+10
-18
lines changed

13 files changed

+10
-18
lines changed

docs/src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ StructuralCausalModels.jl (SCM) is a Julia package to analyse directed acyclic g
44

55
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()`, `pcor_test()` and `adjustment_sets()`.
66

7-
All three above references are great introductions to the use of causal models to help in understanding confounding in statistical models.
7+
All three above references are great introductions to the use of causal models to help in understanding confounding in statistical multiple regression models based on observational data.
88

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

docs/src/walkthrough.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dag = DAG("marks", d_string; df=df);
2828
show(dag)
2929
```
3030

31-
The `d_string` could also contain a dagitty causal model.
31+
The `d_string` can also contain a dagitty causal model.
3232
```julia
3333
# fig2.6.dag <- dagitty("dag { {X V} -> U; S1 <- U; {Y V} -> W; S2 <- W}")
3434
dag = DAG("fig_2_6", "dag {{X V} -> U; S1 <- U; {Y V} -> W; S2 <- W}")
@@ -62,7 +62,9 @@ The DAG pdf is [here](https://github.com/StatisticalRethinkingJulia/StructuralCa
6262
In this example a DataFrame with observed values has been provided and the related covariance matrix will be computed and stored in the DAG object:
6363
```julia
6464
display(dag.s)
65+
```
6566

67+
```julia
6668
5×5 Named Array{Float64,2}
6769
Rows ╲ Cols │ :mechanics :vectors :algebra :analysis :statistics
6870
────────────┼────────────────────────────────────────────────────────────────
@@ -71,14 +73,13 @@ Rows ╲ Cols │ :mechanics :vectors :algebra :analysis :statistic
7173
:algebra101.579 85.1573 112.886 112.113 121.871
7274
:analysis106.273 94.6729 112.113 220.38 155.536
7375
:statistics117.405 99.012 121.871 155.536 297.755
74-
7576
```
7677

7778
Additional DAG related functions are `adjacency_matrix()`, `edge_matrix()` and `dag_vars()`.
7879

7980
# Importing from and exporting to [dagitty.net](http://www.dagitty.net/dags.html#), dagitty and ggm (both are R packages)
8081

81-
Importing is easiest using the functions `from_dagitty()` and `from_ggm()` as shown above.
82+
Importing is easiest implicitly using the functions `from_dagitty()` and `from_ggm()` while constructing a DAG object, as shown above.
8283

8384
To export to dagitty.net, copy and paste the output from `to_dagitty()` into the `Model code` field on the dagitty.net web interface.
8485

examples/SR/SR6.4.3/SR6.4.3.png

1.16 KB
Loading

examples/SR/chain/AMD_chain_1.png

299 Bytes
Loading

examples/SR/chain/AMD_df_1.png

-691 Bytes
Loading

examples/SR/fork/AMD_df_1.png

-973 Bytes
Loading

examples/SR/fork/AMD_df_2.png

3.05 KB
Loading

examples/SR/fork/AMD_fork_1.png

326 Bytes
Loading

examples/SR/fork/AMD_fork_2.png

1.35 KB
Loading

examples/SR/waffledivorce/AMD.png

-983 Bytes
Loading

0 commit comments

Comments
 (0)