

    \filetitle{portest}{Portmanteau test for autocorrelation in VAR residuals}{VAR/portest}

	\paragraph{Syntax}
 
 \begin{verbatim}
 [STAT,CRIT] = portest(V,DATA,H)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{V} {[} VAR \textbar{} swar {]} - Estimated VAR from which the
   tested residuals were obtained.
 \item
   \texttt{DATA} {[} tseries {]} - VAR residuals, or VAR output data
   including residuals, to be tested for autocorrelation.
 \item
   \texttt{H} {[} numeric {]} - Test horizon; must be greater than the
   order of the tested VAR.
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{STAT} {[} numeric {]} - Portmanteau test statistic.
 \item
   \texttt{CRIT} {[} numeric {]} - Portmanteau test critical value based
   on chi-square distribution.
 \end{itemize}
 \paragraph{Options}
 
 \begin{itemize}
 \item
   \texttt{'level='} {[} numeric \textbar{} \emph{0.05} {]} - Requested
   significance level for computing the criterion \texttt{CRIT}.
 \end{itemize}
 \paragraph{Description}
 
 \paragraph{Example}


