BookmarkSubscribeRSS Feed
Fery123
Calcite | Level 5

I find a problem when I want to model
vector autoregressive exogenous, instantly the message "The lag 0 covariance matrix is ​​singular." and The model is not full rank. The VARMAX procedure halts further steps

data finance;
input y1 y2 y3 y4;
cards;
2.22 3.21 2.22 1.43
1.32 2.45 2.31 2.32
2.22 3.21 2.22 1.43
1.32 2.45 2.31 2.32
2.22 3.21 2.22 1.43
:
1.32 2.81 2.31 2.56
2.82 3.21 2.22 1.43
;
run;
proc varmax data = finance;
model y1 y2 y3 = y4 / p = 1 xlag = 1 nocurrentx noint;
run;

1 REPLY 1
stat_sas
Ammonite | Level 13

Hi,

 

Varmax's parameter estimation is based on least squares which requires inverse of a matrix in its calculation. If some of the variables are highly or perfectly correlated then matrix will not invert and you will get this error. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1660 views
  • 0 likes
  • 2 in conversation