 to _stochasticModel_ class
%
% _data_ : structure with the monthly simulated variables

 
%% 1. Define variables for output
for i=1:length(get(sm,'simTenor')); %zero-coupon rates
  mZ(i,:)=mean(squeeze(data.Z(:,i,:)));
end

for i=1:size(data.X,2); %macroeconomic variables
  mX(i,:)=mean(squeeze(data.X(:,i,:)));  
end

if isa(sm,'fourierSeries'); %macroeconomic variables for alternate models
  mX = mX(get(sm,'dim')+1:get(sm,'dim')+6,:);
elseif isa(sm,'obsAffine');
    mX = mX(get(sm,'dim')+1:get(sm,'dim')+3