Displaying 1 result from an estimated 1 matches for "createtaper".
2012 Jan 22
1
Problem with sapa package and spectral density function (SDF)
...> serie.month <- ts(sub.datm,start(sub.dat$Year[1],sub.dat$Month[1]),frequency=12)
> n.m<-length(serie.month)
> n.m
[1] 322
> espec.month<-SDF(serie.month,method="lag window",window=taper(type="parzen",n.sample=n.m,cutoff=(2*sqrt(n.m))),npad=2*n.m)
Error in createTaper(window, "hanning", n.sample) :
? Taper vector must contain 161 elements
It's curious that the length indicated by the error warning is half of
the length of the series. Also, why it mentions the Hanning window if
I've specified the Parzen in the code. I have tried with other seri...