Closed pgg1309 closed 1 month ago
See https://stats.stackexchange.com/a/350363/159 Periodicity is irrelevant -- this is a unit root test, not a seasonality test.
We use the default lags for the other tests. This was purely about backwards compatibility.
Thanks!
Hi, The function
ndiffs
uses a specific number of lags for theur.kpss
testuse.lag = trunc(3 * sqrt(length(x)) / 13)
Questions: (a) why is this lag used ? would it make sense regardless of the periodicity of the series ? (b) why not pick lags for the other two tests ? (
ur.df
andur.pp
)Thanks!