Hi STATALIST,
I am analyzing a balanced panel dataset with the dependent variable of interest being a count variable. Additional to the observed value the upper bound of possible values is also known (i.e., I observe s successes in n trials for different groups i over several years t).
Due to this data structure, I want to analyze the count variable conditional on the exogenous variables and conditional on the upper bound. Any suggestions what the appropriate STATA-code for this problem might look like?
I am not sure whether xtnbreg combined with the exposure-option (like in the code shown below) really solves my problem.
xtnbreg depvar indepvars, exp(number of trials)
Any help is welcome!
Stefan
[email protected]
*
* 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/