\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}(-1,0)(6,13)
  \SpecialCoor

  \rput(4,1){\GM@node[observed=true]{gamma}}
  \GM@label[angle=-180]{gamma}{$\gamma$}
  
%  \fnode[framesize=20pt](4,3){B_kv}
%%  \GM@label[angle=-180]{B_kv}{$\boldsymbol{B}_{K,V}$}  
 % \GM@label[angle=-180]{B_kv}{$\boldsymbol{B}$}  

  \rput(4,3) {\GM@node[observed=false]{B_kv}}
 \GM@label[angle=-180]{B_kv}{$\boldsymbol{B}$}  
 
  \rput(4,6) {\GM@node[observed=true]{y_il}}
  \GM@label[angle=-180]{y_il}{$y_{il}$}
       
  \rput(4,8){\GM@node{q_il}}
  \GM@label[angle=-180]{q_il}{$q_{il}$}
       
%  \rput(2,5){\GM@plate{4}{4}{\GM@node[observed=true]{L_i}      \GM@label[angle=90]{L_i}{$L_i$}}}       
  \rput(2,5){\GM@plate{4}{4}{$L_i$}}
       
  \rput(4,10){\GM@node{pi_i}}
  \GM@label[angle=-180]{pi_i}{$\boldsymbol{\pi}_i$}   

  \rput(1,4){\GM@plate{6}{7}{N}}

  \rput(4,12){\GM@node[observed=true]{alpha}}
  \GM@label[angle=-180]{alpha}{$\alpha$}  
       
  \ncline{->}{gamma}{B_kv}  
  \ncline{->}{B_kv}{y_il}
  \ncline{->}{q_il}{y_il}
  \ncline{->}{pi_i}{q_il}
  \ncline{->}{alpha}{pi_i}   
   
\end{pspicture}

\endTeXtoEPS
\end{document}
