[R] rollingRegression() Problem / Error in nrow(x)

From: nmarti <nate318i_at_yahoo.com>
Date: Tue, 10 Jun 2008 06:25:03 -0700 (PDT)

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.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 10 Jun 2008 - 14:21:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 Jun 2008 - 14:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive