|
|
| olsvector(z)
|
function[b] = olsvector(z)
% OLS intercept and slope estimates, in a vector
% (Helper function of BSTRAPDEM0)
% EXAMPLE : <none> (Oh, the FEX code metrics..)
y = z(:,1);
x = z(:,2:end);
b = regress(y,x);
|
|
Contact us at files@mathworks.com