Re: [R] Question from day2 beginner

2010-07-20 Thread maxcheese
Thanks for the explanation! -- View this message in context: http://r.789695.n4.nabble.com/Question-from-day2-beginner-tp2293221p2294990.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.et

Re: [R] Question from day2 beginner

2010-07-19 Thread Patrick Burns
Try: ar(logrvar, aic=TRUE)$resid The problem you are running into is that 'resid' is a generic function, and the 'ar' function neither returns an object with a class nor returns an object that the default method works with. The 'summary' command you used might have instead used 'str'. The 'hin