File tree Expand file tree Collapse file tree 3 files changed +36
-7
lines changed
Expand file tree Collapse file tree 3 files changed +36
-7
lines changed Original file line number Diff line number Diff line change 22
33A lot!
44
5- 1 . GraphViz (and LightGraph?) plots from the DAG (and MC) model.
5+ 1 . LightGraph plots from the DAG (and MC) model.
662 . @DAG (vs. the current Dict formulation).
773 . Latent variable support.
884 . AG/MC graphs and m_separation.
995 . MCMC based pcor_test().
10- 5 . ...
10+ 6 . m_separation.
11+ 7 . ...
1112
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ $(SIGNATURES)
99Part of the API, Exported
1010"""
1111function syms_in_paths (paths, f, l)
12+ thepaths = deepcopy (paths)
1213 syms = Symbol[]
13- for p in paths
14+ for p in thepaths
1415 setdiff! (p, [f, l])
1516 append! (syms, p)
1617 unique! (syms)
3738
3839# `adjustment_sets`
3940
40- Compute the covariance adjustment vertex set.
41-
4241$(SIGNATURES)
4342
44- Part of the API, Exported
43+ Computes the covariance adjustment vertex set.
44+
45+ ### Required arguments
46+ ```julia
47+ * `dag::DAG` : DAG
48+ * `f::Symbol` : Start variable
49+ * `l::Symbol` : End variable
50+ ```
51+
52+ ### Optional arguments
53+ ```julia
54+ * `debug::Bool` : Show debug trace
55+ ```
56+
57+ ### Returns
58+ ```julia
59+ * `adjustmentsets=Vector{Symbol}[]` : Array of adjustment sets
60+ ```
61+
62+ # Extended help
63+
64+ ### Acknowledgements
65+
66+ Original author : Rob J Goedman
67+
68+ ### Licence
69+
70+ Licenced under: MIT.
71+
72+ Part of the api, exported.
4573"""
4674function adjustment_sets (dag:: DAG , f:: Symbol , l:: Symbol ; debug= false )
4775
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ to_dagitty(dag)
1010
1111fname = joinpath (ProjDir, " test_descendents_03.dot" )
1212to_graphviz (dag, fname)
13- Sys. isapple () && run (` open -a GraphViz.app $(fname) ` )
13+ # Sys.isapple() && run(`open -a GraphViz.app $(fname)`)
1414
1515bs = basis_set (dag)
1616as = adjustment_sets (dag, :x2 , :y )
You can’t perform that action at this time.
0 commit comments