\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(3,3){\GM@node[observed=true]{x_ij}}
  \GM@label[angle=-90]{x_ij}{$\boldsymbol{x}_{ij}$}

  \rput(3,5){\GM@node{y_ij}}
  \GM@label[angle=140]{y_ij}{$y_{ij}$}
  
  \rput(3,7){\GM@node{w_j}}
  \GM@label[angle=140]{w_j}{$\boldsymbol{w}_j$}
  
  \rput(7,5){\GM@node{sigma}}
  \GM@label[angle=90]{sigma}{$\sigma^2$}
  
  \rput(2,9){\GM@node{mu_w}}
  \GM@label[angle=90]{mu_w}{$\boldsymbol{\mu}_w$}
  
  \rput(4,9){\GM@node{Sigma_w}}
  \GM@label[angle=90]{Sigma_w}{$\boldsymbol{\Sigma}_w$}  
  
  \rput(1.5,1.5){\GM@plate{3}{4.5}{$N_j$}}
  \rput(0.5,0.5){\GM@plate{5}{7.5}{$J$}}  
  
  \ncline{->}{x_ij}{y_ij}
  \ncline{->}{sigma}{y_ij}
  \ncline{->}{w_j}{y_ij}
  \ncline{->}{mu_w}{w_j}
  \ncline{->}{Sigma_w}{w_j}
  
\end{pspicture}

\endTeXtoEPS
\end{document}
