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
select the first or the last groupDear all, How can I write code more efficiently to select the first group or the last group membersh…
insufficient observations r(2001) issueHello, I am trying to run a regression using a panel data, using something like: "xtreg wages i.hig…
how to reshape?Dear All, How can I reshape the following data into a standard long format panel data? Code: // htt…
How to plot vertical densities for each variable?Hello! Do you know how I can graph estimated densities vertically on the same graph? Something of th…
Add vertical reference lines in horizontal barsI am using -graph hbar- to create horizontal bars on means by groups. Does anyone know how to add ve…
Subscribe to:
Post Comments (Atom)
0 Response to Plot predictions after xthreg
Post a Comment