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
Generate difference variable between 2 digits sectors and relevant 3 digits sub-sectors of NACE Rev.2Dear all, I have a data set consisting of Inflation rates relating to 2-,and 3- digit sectors of Na…
Response surface analysis (RSA)Hi! Does STATA support RSA analysis and the surface plotting? …
Screeplot of eigenvalues from the reduced correlation matrixI assume that STATA's screeplot command prints the eigenvalues from the sample correlation matrix. H…
Create a Variable in stata that is a value minus it's last month valueHi all, I put some data below, but I have a question about making a varialbe that is it's value min…
counting days between date and another dateDear all, I have 5 subjects who had 5 visits at different dates, I want to create a new variable tha…
Subscribe to:
Post Comments (Atom)
0 Response to plotting interaction for xtpoisson
Post a Comment