
Hello all,

I am newbie to R and have not been able to find too much stuff on a version of VAR(p) I am working on. 
Would someone be able to tell me if there is a more elegant way of writing A function for the following? Many thanks in advance. Darius


I am regressing returns of 8 asset classes on lagged values of 4 state variables and so I have 8 equations like the following:
cash_lag1= dynlm (cal_cash ~ lag(cal_ism,-1) +lag(cal_per,-1) +lag(cal_spread,-1) +lag(cal_unemp,-1))

Is there a way to write pack the 8 regressions in one function? I have already tried ts.union to join the 8 returns into one vector and also as a data frame but I get error messages.

 		 	   		  
	[[alternative HTML version deleted]]

