Hi Statalist fellow,
I have run an analysis but I don't trust my result. I would be extremely appreciated if you could help in this matter by checking my method.
I run an xtpoisson model with interaction term and I need to plot the interactions.
xtpoisson count a##b, fe vce(robust) irr
margins a#b
marginsplot, ytitle('IRR of count)
The issue is that there is no consistency between the xtpoisson IRR coefficients and the result of margins.
xtpoisson report:
IRR =1.38 (p=0.001) for a
IRR = 1.80 (p=0.001) for b
IRR =0.85 (p=0.001) for a#b
margins report:
Linear prediction, predict()
a#b
0 0 0.49
0 1 1.092
1 0 0.65
1 1 1.093
Can you please help to understand what's my mistake and how should I approach this issue?
Thanks,
John
Related Posts with plotting interaction for xtpoisson
Did I set up my panel data (with restrictions) correctly?Hi all, I would like to seek your advice regarding my analysis sample. Specifically, I have a three…
Using MarginsPlot to visualize Quadratics in Panel DataDear Statalist community, I need help with two things: One, I want to use the margins and marginsp…
search if a value is present in tableHello all, How can I search if a particular value is present in a table. if the value is present in…
State by Year Fixed Effects and Annual State ControlsIn my econometric model the identifying variation is at the state, year, and factory level. When I i…
Create binary variable if string contains any of the followingHi, I have a variable "CaseDescription1". It's a string variable, with very long text description o…
Subscribe to:
Post Comments (Atom)
0 Response to plotting interaction for xtpoisson
Post a Comment