%% Prof. Ed Merkle, University of Missouri
%% Charlie Redmon, University of Kansas
%% 20170918
%% SEM path diagram

% standalone class for individual image to be included in a document
% border=15pt controls the whitespace padding around the diagram
\documentclass[border=15pt]{standalone}

% load custom style configurations from separate file
\input{setupSEMstyle.tex}

\begin{document}

%% ">=stealth" sets the arrow head style
%% "semithick" sets the line width (0.6 pt)
\begin{tikzpicture}[>=stealth,semithick]

% y1
\node[ov] (y1)                {$y_1$};

% y2 and y3
% the scope environment allows styles to be specified separately 
% to a block
\begin{scope}[xshift=1.5cm]
\node[av] (y2) at (0,0)    {$y_2$};
\node[av] (y3) at (0,-1.5) {$y_3$};
\end{scope}

% paths (no label rotation)
\path[->] (y1) edge node[above,scale=0.6] {a} (y2)
          (y1) edge node[above,scale=0.6] {b} (y3);

\end{tikzpicture}


\end{document}