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):
Array
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!
Related Posts with Plot predictions after xthreg
Need help with i.year output in aregHello, Thanks for all the help I've received through this forum. I wanted to understand why I got 2 …
Keep only first part of string up until any number, comma, or before the state nameHi All, I am trying to separate an area name in a dataset so I just have the particular city and no…
Interaction variable (using dummy and date variables)Hello everyone, I am trying to create an interaction variable by multiplying a dummy variable (0,1)…
2 sequential loops, second loop only runs those instances that converged in the firstHello all, I'm running several instances of a maximum likelihood routines in a first set of loops. …
Merge based on time-range conditionHello everyone, I have 2 datasets that needed to be merged. Dataset A has unique IDs with multiple …
Subscribe to:
Post Comments (Atom)
0 Response to Plot predictions after xthreg
Post a Comment