A portmanteau test for self-exciting threshold autoregressive-type nonlinearity in time series | Synapse