Tuesday, February 28, 2006
st: count data and test for zero inflated poisson distribution
I have a dataset which looks like the one below
Individual 1 individual 2 Time count count 1 0 1 2 1 0 3 0 0 4 0 0 5 3 1 6 0 0 7 1 0
Time represents months and count represents the occurance of an event. I understand that count might follow a zero inflated poisson distribution or a negative binomial distribution.
Are there any stata command to check if the data fits these distributions? (just like we have the shapiro-wilk test for normality.).
My objective is to see if there is any increase in the counts between say period1 (time 1 to 3) and period2 (time 4 to7) for each individual. And for all individuals taken together...
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
Links to this post: