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