SELECT * FROM Varmax ( ON finance_data3 PARTITION BY id ORDER BY period ResponseColumns ('expenditure') ExogenousColumns ('income', 'investment') PartitionColumns ('id') Orders ('1, 1, 1') Lag ('3') ExogenousOrder ('3') IncludeMean ('false') StepAhead (3) ) ORDER BY id;