Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to analyz count data conditional on a known upper bound (xtnbreg - exposure)?


From   "Wagner, Stefan" <[email protected]>
To   <[email protected]>
Subject   st: How to analyz count data conditional on a known upper bound (xtnbreg - exposure)?
Date   Wed, 26 Jan 2005 16:33:00 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index