Hi!
I'm attempting to use the "countfit" command to compute average predicted probabilities from Poisson and Negative Binomial models, in order to assess model fit. I have encountered a problem when executing the code, however, in that when I enter the command, Stata returns the error message "command countfit is unrecognized" (with "r(199)" in blue underneath).
Obviously countfit is a command, so I'm not quite sure why this is happening.
The code I am entering is:
count fit ncigs female age2 married income degree degree voc alevel olevel cse childish anxiety health poor, maxcount(80) prm nograph noestimates nofit
(My model regresses the number of cigarettes smoked on potential determinant factors. I included maxcount(80) as this is the maximum number of cigarettes smoked, per person, in the dataset.)
Any help you could offer would be very much appreciated!
Many thanks,
Will
I'm attempting to use the "countfit" command to compute average predicted probabilities from Poisson and Negative Binomial models, in order to assess model fit. I have encountered a problem when executing the code, however, in that when I enter the command, Stata returns the error message "command countfit is unrecognized" (with "r(199)" in blue underneath).
Obviously countfit is a command, so I'm not quite sure why this is happening.
The code I am entering is:
count fit ncigs female age2 married income degree degree voc alevel olevel cse childish anxiety health poor, maxcount(80) prm nograph noestimates nofit
(My model regresses the number of cigarettes smoked on potential determinant factors. I included maxcount(80) as this is the maximum number of cigarettes smoked, per person, in the dataset.)
Any help you could offer would be very much appreciated!
Many thanks,
Will

Comment