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
custom maximum likelihood estimators - best way to check for convergence?I've made a package to estimate a model by maximum likelihood. I'd like to store a result as e(conve…
Pairwise matching: first nearest neighbourHi, I'm new on Stata and I have some difficulties to realise a pairwise matching. Here is a simplifi…
estimation sample variesGood day, I get following error message Code: bys id: gen treatment=0 if (expectation==2 & f.…
How to test if the mean of a sample is significantly different from zeroHi everyone, I have a sample of 166 bonds (i.e. n=166). I have broken these down into subsamples ba…
Dropped year-dummies in panel regressionDear Statalisters, I have some issues understanding year-dummies being dropped in a fixed effects …
Subscribe to:
Post Comments (Atom)
0 Response to plotting interaction for xtpoisson
Post a Comment