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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1685 views
  • 0 likes
  • 2 in conversation