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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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