Skip to content
Prev 278622 / 398502 Next

generating a vector of y_t = \sum_{i = 1}^t (alpha^i * x_{t - i + 1})

You can write a function to do so and then there are all sorts of options of what to do with it - mostly they degenerate into putting it in a personal package or into your .Rprofile for convenient use. If you want to use compiled code, that's slightly trickier but good facilities exist to do so from C, C++, and Fortran. 

Any follow-up, after reading the R extensions manual and the documentation to ?package.skeleton, ?STARTUP, and ?function, probably deserves its own thread. 

Michael
On Nov 27, 2011, at 12:34 PM, "Yen, Steven T" <syen at utk.edu> wrote: