Re: [R] problem with looping formula through table

2011-03-14 Thread Scott Chamberlain
library(tseries) sie <- get.hist.quote(instrument="SIE.DE", start="2010-01-01", quote="AdjClose") vow <- get.hist.quote(instrument="VOW.DE", start="2010-01-01", quote="AdjClose") lin <- get.hist.quote(instrument="LIN.DE", start="2010-01-01", quote="AdjClose") dax <- get.hist.quote(instrument="^GDA

[R] problem with looping formula through table

2011-03-13 Thread herr dittmann
Dear useRs, I am stuck with a piece of code and hope you could give me some pointers. My aim is to calculate the lm-regression coefficients of individual stocks against an index. I am interested in both the coefficient and the pval. While I could do this manually for a select hand full, I hope