Simple ols function conducting an error stting tht the matrix is small however thisis what is only needed in the equation

조회 수: 2 (최근 30일)
whenever I compute a simple ols i receive this message and also another error stating (wrong number of arguments to ols). Accordingly what should i do ?
y = Data(:,1); %Output gap
r = Data(:,2); %Fed funds rate
p = Data(:,3); %Inflation gap
T = size(y,1); %Number of observations
iota=ones(T,1); %Vector of ones
LHS=r; %The fed funds rate is the left-hand-side variable
RHS=[iota y p];
results=ols(LHS,RHS);
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
> In ols (line 53)
>> LHS=r;

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by