;

resid = (Y-X*s.B'); <span class="comment">%matrix of residuals</span>
s.Omega=(Y-X*s.B')'*(Y-X*s.B')/(N-k*nlag-1);     <span class="comment">%correlation matrix of error terms</span>
s.Q=(X'*X)/(N-k*nlag-1);
s.h=sqrt(diag(kron(s.Omega,inv(s.Q)))/(N-k*nlag-1));
vecB=reshape(s.B',length(s.h),1);
s.LTM=LTM;
s.simLTM=simLTM;
</pre><p class="footer"><br><a href="http://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2015a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% getVarParameters_new.m