\documentclass{article}
\usepackage{com.braju.graphicalmodels}
\usepackage{amsmath}
% \special{papersize=40mm,80mm}
% \setlength{\pdfpagewidth}{40mm}
% \setlength{\pdfpageheight}{80mm}
% \usepackage[vcentering,dvips]{geometry}
% \geometry{papersize={80mm,120mm},total={80mm,120mm},margin=0mm}



\catcode`\@=11%

\pagestyle{empty}

\begin{document}
\TeXtoEPS

\LARGE
\psset{unit=10mm,arrowscale=1.5,linewidth=1.5pt}

\begin{pspicture}(0,0)(12,10)%\showgrid
  \SpecialCoor

  \rput(1.0,1){\GM@node{L_2}}                 \GM@label[angle=180]{L_2}{$L^2$}
  \rput(2.0,3){\GM@node[observed=true]{Y1_2}} \GM@label[angle=40]{Y1_2}{$Y_{1}$}
  \rput(4.0,3){\GM@node[observed=true]{Y2_2}} \GM@label[angle=40]{Y2_2}{$Y_{2}$} 
  \rput(10.0,3){\GM@node[observed=true]{YT_2}}\GM@label[angle=40]{YT_2}{$Y_{T}$}
  \rput(2.0,7){\GM@node[observed=true]{Y1_1}} \GM@label[angle=40]{Y1_1}{$Y_{1}$}  
  \rput(6.0,7){\GM@node[observed=true]{Y3_1}} \GM@label[angle=40]{Y3_1}{$Y_{3}$}  
  \rput(1.0,5){\GM@node{Z_1}}                 \GM@label[angle=120]{Z_1}{$X_1$}
  \rput(3.0,5){\GM@node{Z_2}}                 \GM@label[angle=120]{Z_2}{$X_2$} 
  \rput(5.0,5){\GM@node{Z_3}}                 \GM@label[angle=120]{Z_3}{$X_3$} 
  \rput(7.0,5){\GM@ldots{Z_4}}
  \rput(9.0,5){\GM@node{Z_T}}                 \GM@label[angle=120]{Z_T}{$X_T$}  
  \rput(1.0,9){\GM@node{L_1}}                 \GM@label[angle=180]{L_1}{$L^1$}
  
  \psset{arrows=->,nodesep=2pt}
  \ncline{L_2}{Y1_2}
  \ncline{L_2}{Y2_2}
  \ncline{L_2}{YT_2}
  \ncline{Z_1}{Y1_2}
  \ncline{Z_2}{Y2_2}
  \ncline{Z_T}{YT_2}
  \ncline{Z_1}{Z_2}
  \ncline{Z_2}{Z_3}
  \ncline{Z_3}{Z_4}
  \ncline{Z_4}{Z_T}
  \ncline{Z_1}{Y1_1}
  \ncline{Z_3}{Y3_1}
  \ncline{L_1}{Y1_1}
  \ncline{L_1}{Y3_1}
\end{pspicture}

\endTeXtoEPS
\end{document}
