[R] rollingRegression() Problem / Error in nrow(x)
nate318i at yahoo.com
Tue Jun 10 15:25:03 CEST 2008
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.
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.
More information about the R-help