

    \filetitle{resample}{Resample from a VAR object}{VAR/resample}

	\paragraph{Syntax}
 
 \begin{verbatim}
 d = resample(w,d,range,ndraw,...)
 d = resample(w,[],range,ndraw,...)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{w} {[} VAR {]} - VAR object to resample from.
 \item
   \texttt{input} {[} struct \textbar{} tseries {]} - Input database or
   tseries used in bootstrap; not needed when
   \texttt{'method=' 'montecarlo'}.
 \item
   \texttt{range} {[} numeric {]} - Range for which data will be
   returned.
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{d} {[} struct \textbar{} tseries {]} - Resampled output
   database or tseries.
 \end{itemize}
 \paragraph{Options}
 
 \begin{itemize}
 \item
   \texttt{'method='} {[} `bootstrap' \textbar{} \emph{`montecarlo'}
   \textbar{} function\_handle {]} - Bootstrap from estimated residuals,
   resample from normal distribution, or use user-supplied sampler.
 \item
   \texttt{'progress='} {[} \texttt{true} \textbar{}
   \emph{\texttt{false}} {]} - Display progress bar in the command
   window.
 \item
   \texttt{'randomise='} {[} \texttt{true} \textbar{}
   \emph{\texttt{false}} {]} - Randomise or fix pre-sample initial
   condition.
 \item
   \texttt{'wild='} {[} \texttt{true} \textbar{} \emph{\texttt{false}}
   {]} - Use wild bootstrap instead of standard Efron bootstrap when
   \texttt{'method=' 'bootstrap'}.
 \end{itemize}
 \paragraph{Description}
 
 \paragraph{Example}


