[R] How to obtain the series of residuals from fracdiff
Susana Barbosa
susanabarbosa at novalis.fc.up.pt
Sun Jan 13 18:14:55 CET 2002
Dear Adrian
Thank you very much for your help.
It worked!
Thanks
Susana
>
> Hi Susana
>
> For fractional differencing you can use, e.g., something like
>
> fracdiff <- function (x, d, N = 100)
> {
> n <- 0:N
> w <- gamma(-d+n)/(gamma(-d)*gamma(n+1))
> y <- filter(x, w, sides=1)
> return (y)
> }
>
> Adrian
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list