Stata’s poisson fits maximum-likelihood models of the number of occurrences (counts) of an event. In a Poisson regression model, the incidence rate for the \(j\)th observation is assumed to be given by
\(r_j = exp(\beta_0 + \beta_1 x_{1,j} +{...}+ \beta_k x_{k,j}) \)
If \(E_j\) is the exposure, the expected number of events \(C_j\) will be
\(C_j = E_j r_j\)
\(\;\;\;\;\:= exp[\;ln(E_j) + \beta_0 + \beta_1 x_{1,j} +{...}+ \beta_k x_{k,j}\;]\)
This is the model fitted by poisson. \(E_j\) may be specified or, if not specified, is assumed to be \(1\).
. poisson deaths smokes i.agecat, exposure(pyears) irr Iteration 0: Log likelihood = -33.823284 Iteration 1: Log likelihood = -33.600471 Iteration 2: Log likelihood = -33.600153 Iteration 3: Log likelihood = -33.600153 Poisson regression Number of obs = 10 LR chi2(5) = 922.93 Prob > chi2 = 0.0000 Log likelihood = -33.600153 Pseudo R2 = 0.9321
deaths | IRR Std. Err. z P>|z| [95% Conf. Interval] | |
smokes | 1.425519 .1530638 3.30 0.001 1.154984 1.759421 | |
agecat | ||
45-54 | 4.410584 .8605197 7.61 0.000 3.009011 6.464997 | |
55-64 | 13.8392 2.542638 14.30 0.000 9.654328 19.83809 | |
65-74 | 28.51678 5.269878 18.13 0.000 19.85177 40.96395 | |
75-84 | 40.45121 7.775511 19.25 0.000 27.75326 58.95885 | |
_cons | .0003636 .0000697 -41.30 0.000 .0002497 .0005296 | |
ln(pyears) | 1 (exposure) | |
The syntax of all estimation commands is the same: the name of the dependent variable is followed by the names of the independent variables, which are followed by a comma and any options. In this case, we controlled for the exposure (person-years recorded in the variable pyears) and asked that results be displayed as incidence-rate ratios rather than as coefficients.
svy: poisson can be used to analyze complex survey data, and the mi estimate: poisson command performs estimation using multiple imputations. Also, Stata provides Cox regression, exponential, Weibull, and other parametric survival models, as well as logistic regression, and all can be used to analyze complex survey data or to perform estimation using multiple imputations.
Learn
Free webinars
NetCourses
Classroom and web training
Organizational training
Video tutorials
Third-party courses
Web resources
Teaching with Stata
© Copyright 1996–2024 StataCorp LLC. All rights reserved.
×
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.