[R] help with Code

Joshua Wiley jwiley.psych at gmail.com
Sun Jul 10 22:44:25 CEST 2011


Please provide a *reproducible* example (as the posting guide
requests).  It is also courteous to report your version of R and the
package which contains the chart.Regression() function.  We can look
it up, but it saves time if you just say it.


On Sun, Jul 10, 2011 at 12:52 PM, finguy <bball3brian at hotmail.com> wrote:
>  chart.Regression(MCD,SPX, Rf = .03/12, excess.returns = TRUE, main =
> "Security Characteristic Line", fit = c("loess", "linear"), legend.loc =
> "topleft")
> Error in as.vector(data[, i]) : subscript out of bounds
> Why is this happening? Thanks
> --
> View this message in context: http://r.789695.n4.nabble.com/help-with-Code-tp3658134p3658134.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles

More information about the R-help mailing list