Skip to content
Prev 327701 / 398502 Next

acf and ccf

I use R 3.0.1.

#I do have that line after? ` lag[lower.tri(lag)] <- -1`

?acf <- .Call(C_acf, x, lag.max, type == "correlation")
??? lag <- outer(0:lag.max, lag/x.freq)
??? acf.out <- structure(list(acf = acf, type = type, n.used = sampleT, 
??????? lag = lag, series = series, snames = colnames(x)), class = "acf")


Check this link:
http://stackoverflow.com/questions/14035506/how-to-see-the-source-code-of-r-internal-or-primitive-function

A.K.
Message-ID: <1375218915.84202.YahooMailNeo@web142603.mail.bf1.yahoo.com>
In-Reply-To: <CAOeg=_8ZEmpZdXu0-Rx_CaoxdzfmonkeOYHPMeHfY+0asX4Lpg@mail.gmail.com>