I am tring to use the rollingRegression function from PerformanceAnalytics.
When I apply the function to R stock data (Boston), the function works fine.
But when I try to apply it to data that I imported from excel, using
xlsReadWrite, I recieve an error message:
> Error in nrow(x): subscript out of bounds
So maybe it's not a function problem, maybe it's a data problem, I
don't
know. Im using the code:
> reg <- rollingRegression( lm( y ~ x ), data, 10 )
Any thoughts on why I'm recieving the errror message would be appreciated.
Thanks
--
View this message in context:
http://www.nabble.com/rollingRegression%28%29-Problem---Error-in-nrow%28x%29-tp17755376p17755376.html
Sent from the R help mailing list archive at Nabble.com.