gStep);
<span class="keyword">end</span>
<span class="keyword">if</span> size(Y,1)&lt;size(Y,2)
  Y=Y';
<span class="keyword">end</span>

<span class="comment">%If no long-term mean vector set for LTM, use mean of historical data</span>
<span class="keyword">if</span> nargin &lt; 4
  LTM = mean(Y);
<span class="keyword">elseif</span> size(LTM,1)&gt;size(LTM,2)
  LTM=LTM';
<span class="keyword">end</span>

<span class="comment">%If no exogenous variables set for exo, that variable is NULL</span>
<span class=