\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)(8,9)
  \SpecialCoor

  \rput(7,1){\fnode[framesize=30pt]{W}}
  \rput(7,1){$\boldsymbol{W}$}
  
  \rput(4,3){\GM@node[observed=true]{y_i1}}
  \GM@label[angle=140]{y_i1}{$y_{i1}$}
  
  \rput(6,3){\GM@ldots{y_i2}}
  \rput(8,3){\GM@ldots{y_i3}}  
  
  \rput(10,3){\GM@node[observed=true]{y_iLi}}
  \GM@label[angle=40]{y_iLi}{$y_{iL_i}$}  
  
  \rput(5,5){\GM@node{z_i1}}
  \GM@label[angle=140]{z_i1}{$z_{i1}$}
  
  \rput(7,5){\GM@ldots{z_i2}}  
  
  \rput(9,5){\GM@node{z_ik}}
  \GM@label[angle=40]{z_ik}{$z_{iK}$}  
  
  \rput(4,7){\GM@node[observed=true]{x_i1}}
  \GM@label[angle=140]{x_i1}{$x_{i1}$}

  \rput(6,7){\GM@ldots{x_i2}}
  \rput(8,7){\GM@ldots{x_i3}}  
  
  \rput(10,7){\GM@node[observed=true]{x_iD}}
  \GM@label[angle=40]{x_iD}{$x_{iD}$}  
  
  \rput(2.5,2){\GM@plate{9}{6}{$N$}}  
  
  \rput(1,5){\ovalnode{v_1}{\phantom{abc}}}
  \rput(1,5){$\boldsymbol{v}_1$}  
  
  \rput(13,5){\ovalnode{v_k}{\phantom{abc}}}
  \rput(13,5){$\boldsymbol{v}_K$}
  
  \ncline{->}{W}{y_i1}
  \ncline{->}{W}{y_iLi}  
  \ncline{->}{z_i1}{y_i1}
  \ncline{->}{z_i1}{y_iLi}
  \ncline{->}{z_ik}{y_i1}
  \ncline{->}{z_ik}{y_iLi}  
  \ncline{->}{x_i1}{z_i1}
  \ncline{->}{x_i1}{z_ik}
  \ncline{->}{x_iD}{z_i1}
  \ncline{->}{x_iD}{z_ik}  
  \ncline{->}{v_1}{z_i1}
  \ncline{->}{v_k}{z_ik}  
  
\end{pspicture}

\endTeXtoEPS
\end{document}
