Determine the optimal number of seasonal differences for stationarity.Uses a seasonal strength heuristic based on STL decomposition to determine
if seasonal differencing is needed. The function applies seasonal differencing
iteratively until the seasonal strength falls below the threshold or the
maximum number of differences is reached.Parameters:
Determine the optimal number of non-seasonal differences for stationarity.Uses the KPSS (Kwiatkowski-Phillips-Schmidt-Shin) test to determine how many
times the series needs to be differenced to achieve stationarity. The function
applies differencing iteratively until the KPSS statistic falls below the
threshold or the maximum number of differences is reached.Parameters: