search for: hlhofer

Displaying 2 results from an estimated 2 matches for "hlhofer".

Did you mean: muhlhofer
2004 Jan 23
1
lags in regressions
Hi! I am trying to get R to run regressions for me of a variable on lagged differences of itself. Specifically: x-x(-1) = a + b1(x(-1)-rx(-2))+b2(x(-4)-rx(-5))+e I need to do this a lot of times, altering the value of r. What I've been trying to do was to use the lag() command to create lagged versions of these variables and then constructing these differences by hand (i.e. creating
2013 Mar 30
0
Scoping issue with irf() from {vars}
...ssage: Error in VAR(y = ysampled, p = lags, type = "const") (from #5) : ## object 'lags' not found. ------------------------- If you first assign lags and then define testfun2, it works. Seems to me like a scoping problem. Any ideas? Thanks! Toby -- Dr. Tobias M?hlhofer Assistant Professor Department of Finance Kelley School of Business Indiana University +1-812-855-9270 http://tobias.muhlhofer.com