%% 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]

% observed variables
\node[ov] (y1) at (0,-1)      {$y_1$};
\node[ov] (y2) [below of=y1]  {$y_2$};
\node[ov] (y3) [below of=y2]  {$y_3$};

% latent variable
\node[lv] (f1) at (1.5, -2)  {$\eta$};

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

\end{tikzpicture}


\end{document}