prep.deseason.differencing {predtoolsTS} | R Documentation |
Deseason with differencing method
Description
Performs differencing with lag=frequency.
Usage
prep.deseason.differencing(tserie, nsd = NULL)
Arguments
tserie |
a |
nsd |
number of seasonal differences to apply. As default its value is NULL; in this case, the function will perform an automatic estimation of |
Details
If no number of differences is specified, the function will make an estimation
of the number of differences needed based on unit root test provided by forecast::nsdiffs
Value
A list is returned containing:
tserie |
Transformed ts object. |
nsd |
Number of seasonal differencies applied. |
firstseasons |
Lost values after differencing. |
Examples
prep.deseason.differencing(AirPassengers)
prep.deseason.differencing(AirPassengers,nsd=2)
[Package predtoolsTS version 0.1.1 Index]