ass="comment">%macroeconomic variables</span>
  mX(i,:)=mean(squeeze(data.X(:,i,:)));
<span class="keyword">end</span>

<span class="keyword">if</span> isa(sm,<span class="string">'fourierSeries'</span>); <span class="comment">%macroeconomic variables for alternate models</span>
  mX = mX(get(sm,<span class="string">'dim'</span>)+1:get(sm,<span class="string">'dim'</span>)+6,:);
<span class="keyword">elseif</span> isa(sm,<span class="string">'obsAffine'</span>);
    mX = mX(get(sm,<span class="string">'dim'