This tests a fixed effects regression for one or two breaks in a single regressor, with breaks determined by the values of another variable. This is from Bruce Hansen(1999), "Threshold effects in non dynamic panels: estimation, testing and inference" Journal of Econometrics, vol 93, pp 345-368.
The regression (with two breaks) takes the form:
y(i,t)=a(i)+x(t,i)b+z(t,i)*(q(t,i)<=gamma1)+z(t,i)*(q(t,i)<=gamma2)
This requires a separate fixed effects regression for each test setting for the break values. If q is a continuous variable, a complete search over all possible values in a panel data set could be very time consuming. As a result, you can examine a reduced number of quantiles of the values of q. It also only does an exhaustive search for the first break, then examines the second break given the first.
An example (from the original paper) is provided at http://www.estima.com/forum/viewtopic.php?f=8&t=1195.
@PanelThresh( options ) depvar start end
# list of regressors (omit CONSTANT)
Options
THRESHVAR=series that determines the breaks [required]
BREAKVAR =series that is dummied out at the break
QN=number of quantiles of the threshold variable to examine. The default is [max(400,actual values)]
T1=trimming fraction on ends for first threshold [.01]
[PRINT]/NOPRINT
TITLE=title for report ["Panel Threshold Analysis, Threshold Variable xxx"]
