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.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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