

    \filetitle{trend}{Estimate a time trend}{tseries/trend}

	\paragraph{Syntax}
 
 \begin{verbatim}
 x = trend(x,range)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{x} {[} tseries {]} - Input time series.
 \item
   \texttt{range} {[} tseries {]} - Range for which the trend will be
   computed.
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{x} {[} tseries {]} - Output trend time series.
 \end{itemize}
 \paragraph{Options}
 
 \begin{itemize}
 \item
   \texttt{'break='} {[} numeric \textbar{} \emph{empty} {]} - Vector of
   breaking points at which the trend may change its slope.
 \item
   \texttt{'connect='} {[} \emph{\texttt{true}} \textbar{} \texttt{false}
   {]} - Works only with \texttt{'diff=' true}. Connect the first and
   last observations; otherwise the filtered series is centred on zero.
 \item
   \texttt{'diff='} {[} \texttt{true} \textbar{} \emph{\texttt{false}}
   {]} - Estimate the trend on differenced data.
 \item
   \texttt{'log='} {[} \texttt{true} \textbar{} \emph{\texttt{false}} {]}
   - Logarithmise the input data, de-logarithmise the output data.
 \item
   \texttt{'season='} {[} \texttt{true} \textbar{} \emph{\texttt{false}}
   \textbar{} \texttt{2} \textbar{} \texttt{4} \textbar{} \texttt{6}
   \textbar{} \texttt{12} {]} - Include deterministic seasonal factors in
   the trend.
 \end{itemize}
 \paragraph{Description}
 
 \paragraph{Example}


