Hi guys, I'm trying to do the autocovariance of a moving average but it's giving me errors. Here is my code:
> w=rnorm(500,0,1) > v=filter(w, sides=2, rep(1/3,3)) > acf(w, lag.max=20) <=that printed out a nice graph. > acf(v, lag.max=20) Error in na.fail.default(as.ts(x)) : missing values in object thanks a lot. -- View this message in context: http://r.789695.n4.nabble.com/how-do-I-do-the-autocovariance-of-a-moving-average-tp4322558p4322558.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.