]> code.communitydata.science - ml_measurement_error_public.git/blob - charts/example_4_dag.tex
update simulation base from hyak
[ml_measurement_error_public.git] / charts / example_4_dag.tex
1 \documentclass[12pt]{standalone}
2
3 \usepackage{ucs}
4 \usepackage[utf8x]{inputenc}
5
6 \usepackage[T1]{fontenc}
7 \usepackage{textcomp}
8 \renewcommand{\rmdefault}{ugm}
9 \renewcommand{\sfdefault}{phv}
10 \usepackage[garamond]{mathdesign}
11 \usepackage{tikz}
12 \usetikzlibrary{positioning, shapes, arrows, shadows}
13
14 \begin{document}
15 \tikzset{
16   observed/.style={circle, draw},
17   partly observed/.style 2 args={draw, fill=#2, path picture={
18       \fill[#1, sharp corners] (path picture bounding box.south west) -|
19       (path picture bounding box.north east) -- cycle;},
20      circle},
21     unobserved/.style={draw, circle, fill=gray!40},
22     residual/.style={draw, rectangle}
23 }
24
25 \tikzset{>=latex}
26
27 \begin{tikzpicture}
28   \node[unobserved] (y) {$Y$};
29
30   \node[observed={white}{gray!40}, above=of y] (x) {$X$};
31   \node[observed, left=of x] (w) {$W$};
32
33 %  \node[unobserved, above=of w] (k) {$K$};
34   \node[observed,right=of x] (z) {$Z$};
35 %   \node[residual,below=of y] (e) {$\varepsilon$};
36 %   \node[residual,below=of w] (xi) {$\xi$};
37   \draw[->] (x) -- (y);
38 %  \draw[->] (x) -- (w);
39   \draw[->] (y) -- (w);
40 %  \draw[->] (k) -- (w);
41   \draw[->] (z) -- (y);
42 %  \draw[->] (z) -- (k);
43 %  \draw[->] (y) -- (xi);
44 %  \draw[->] (w) -- (xi);
45 \end{tikzpicture}
46 \end{document}
47

Community Data Science Collective || Want to submit a patch?