Hi,
I am using xtpoisson fixed effect regression. After getting the coefficients as follows, I want to make the prediction and get the accuracy of the model. I see simple predict gave me numbers in specific range for event count.
Any help please?
I am using xtpoisson fixed effect regression. After getting the coefficients as follows, I want to make the prediction and get the accuracy of the model. I see simple predict gave me numbers in specific range for event count.
Any help please?
Code:
. xtpoisson count average_temprature average_precipitation humidity avg_shifted commulitave_2_years, fe irr note: 1038 groups (21798 obs) dropped because of all zero outcomes note: humidity dropped because it is constant within group Iteration 0: log likelihood = -35735.979 Iteration 1: log likelihood = -35032.504 Iteration 2: log likelihood = -35032.009 Iteration 3: log likelihood = -35032.009 Conditional fixed-effects Poisson regression Number of obs = 41,643 Group variable: fips Number of groups = 1,983 Obs per group: min = 21 avg = 21.0 max = 21 Wald chi2(4) = 1394.43 Log likelihood = -35032.009 Prob > chi2 = 0.0000 --------------------------------------------------------------------------------------- count | IRR Std. err. z P>|z| [95% conf. interval] ----------------------+---------------------------------------------------------------- average_temprature | 1.208188 .0065024 35.14 0.000 1.19551 1.220999 average_precipitation | .9954726 .0108513 -0.42 0.677 .9744301 1.01697 avg_shifted | 1.005804 .0009224 6.31 0.000 1.003998 1.007613 commulitave_2_years | 1.000069 .0001511 0.46 0.646 .9997733 1.000366 ---------------------------------------------------------------------------------------
Comment