This uses the Hidalgo (2018) threshold model. Imagine you have three variables
We have the jump model
where I() is the indicator function.
And we have the kink model
Now since it might be hard to find the right threshold
We use the WAIC metric to judge both models on some simulated data (N=50).