\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,10)
  \SpecialCoor

  \rput(4,4){\GM@node{q_ij}}
  \GM@label[angle=40]{q_ij}{$q_{i \rightarrow j}$}

  \rput(7,1){\fnode[framesize=30pt]{eta_ab}}
  \rput(7,1){$\boldsymbol{\eta}_{a,b}$}
  
  \rput(7,4){\GM@node[observed=true]{R_ij}}
  \GM@label[angle=40]{R_ij}{$R_{i,j}$}

  \rput(0,3){\GM@plate{8.5}{4}{$I$}}

  \rput(1,4){\ovalnode{pi_i}{\phantom{abc}}}
  \rput(1,4){$\boldsymbol{\pi}_i$}

  \rput(7,6){\GM@node{q_ji}}
  \GM@label[angle=40]{q_ji}{$q_{i \leftarrow j}$}

  \rput(7,8){\ovalnode{pi_j}{\phantom{abc}}}
  \rput(7,8){$\boldsymbol{\pi}_j$}

  \rput(1,8){\GM@node{alpha}}
  \GM@label[angle=40]{alpha}{$\alpha$}

  \rput(3,2){\GM@plate{6}{7}{$J$}}

  \ncline{->}{eta_ab}{R_ij}
  \ncline{->}{q_ij}{R_ij}
  \ncline{->}{pi_i}{q_ij}
  \ncline{->}{pi_j}{q_ji}
  \ncline{->}{q_ji}{R_ij}
  \ncline{->}{alpha}{pi_i}
  \ncline{->}{alpha}{pi_j}
  
\end{pspicture}

\endTeXtoEPS
\end{document}
