Hello Statalist,
I have experimental panel data und used xthreg to estimate a threshold function (with one threshold).
Here is the output (it looks good and somehow as expected):

I now would like to plot this piecewise function with 95% confidence intervals.
The command margins, at(wealth2=(1(1)209)) ignores the "kink" at 115.9 and only gives me a linear prediction.
(I put it then into coefplot, that looks good besides being linear...)
Do you know how I can create predictions that take care of the threshold after xthreg? Thanks!
I have experimental panel data und used xthreg to estimate a threshold function (with one threshold).
Here is the output (it looks good and somehow as expected):
I now would like to plot this piecewise function with 95% confidence intervals.
The command margins, at(wealth2=(1(1)209)) ignores the "kink" at 115.9 and only gives me a linear prediction.
(I put it then into coefplot, that looks good besides being linear...)
Do you know how I can create predictions that take care of the threshold after xthreg? Thanks!
Comment