## calculate the DWPT of the sunspots series
W <- wavDWPT(as.numeric(sunspots), wavelet="s8", n.levels=9)
## find the whitest transform based on the
## Portmanteau I white noise test
z <- wavDWPTWhitest(W, test="port1")
print(z)
Run the code above in your browser using DataLab