qBillStock.mean(1,:,p) = mean(sum(Outs(1:s.nBill,:,:)),3);  %treasury bill stock by quarter
m.issue.qBondStock.mean(1,:,p) = mean(sum(Outs(s.nBill+1:s.nInst,:,:)),3);  %bond stock by quarter  
m.issue.meanIss(:,:,p) = avgIss;    %each sector's average issuance by quarter
clear issuance bondRedemption billRedemption billIssue bondIssue Outs avgIss;
clear totalStock;


%% 6. Other Portfolio Summary Metrics
% Mean fixed-debt, fixed-debt as % of GDP, ATM, and mDuration measures.
m.psm.pFF(1,:,p)=mean(fxfl,1);  