\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(3,3){\GM@node[observed=true]{y_il}}
  \GM@label[angle=140]{y_il}{$y_{il}$}
  
  \rput(2,2){\GM@plate{2}{2}{}}
  
  \rput(3,5){\ovalnode{z_i}{\phantom{abc}}}
  \rput(3,5){$\boldsymbol{z}_i$}
  
  \rput(3,7){\ovalnode*[fillcolor=gray]{x_i}{\phantom{abc}}}
  \rput(3,7){$\boldsymbol{x}_i$}  
  
  \rput(1.5,1){\GM@plate{3}{7}{$N$}}
  
  \rput(6,3){\fnode[framesize=30pt]{W}}
  \rput(6,3){$\boldsymbol{W}$}  
  
  \rput(6,5){\fnode[framesize=30pt]{V}}
  \rput(6,5){$\boldsymbol{V}$}  
  
  \ncline{->}{z_i}{y_il}
  \ncline{->}{x_i}{z_i}  
  \ncline{->}{W}{y_il}  
  \ncline{->}{V}{z_i}  
  
\end{pspicture}

\endTeXtoEPS
\end{document}
