[R] poisson -- Poisson regression
Syntax
poisson depvar [indepvars] [if] [in] [weight] [, options]
options description
-------------------------------------------------------------------------
Model
noconstant suppress constant term
exposure(varname_e) include ln(varname_e) in model with
coefficient constrained to 1
offset(varname_o) include varname_o in model with coefficient
constrained to 1
constraints(constraints) apply specified linear constraints
collinear keep collinear variables
SE/Robust
vce(vcetype) vcetype may be oim, robust, cluster
clustvar, opg, bootstrap, or jackknife
Reporting
level(#) set confidence level; default is level(95)
irr report incidence-rate ratios
nocnsreport do not display constraints
display_options control spacing and display of omitted
variables and base and empty cells
Maximization
maximize_options control the maximization process; seldom
used
+ coeflegend display coefficients' legend instead of
coefficient table
-------------------------------------------------------------------------
+ coeflegend does not appear in the dialog box.
indepvars may contain factor variables; see fvvarlist.
depvar, indepvars, varname_e, and varname_o may contain time-series
operators; see tsvarlist.
bootstrap, by, fracpoly, jackknife, mfp, mi estimate, nestreg, rolling,
statsby, stepwise, svy are allowed; see prefix.
vce(bootstrap) and vce(jackknife) are not allowed with the mi estimate
prefix.
Weights are not allowed with the bootstrap prefix.
vce() and weights are not allowed with the svy prefix.
fweights, iweights, and pweights are allowed; see weight.
See [R] poisson postestimation for features available after estimation.
Menu
Statistics > Count outcomes > Poisson regression
Description
poisson fits a Poisson regression of depvar on indepvars, where depvar is
a nonnegative count variable.
If you have panel data, see [XT] xtpoisson.
Options
+-------+
----+ Model +------------------------------------------------------------
noconstant, exposure(varname_e), offset(varname_o),
constraints(constraints), collinear; see [R] estimation options.
+-----------+
----+ SE/Robust +--------------------------------------------------------
vce(vcetype) specifies the type of standard error reported, which
includes types that are derived from asymptotic theory, that are
robust to some kinds of misspecification, that allow for intragroup
correlation, and that use bootstrap or jackknife methods; see [R]
vce_option.
+-----------+
----+ Reporting +--------------------------------------------------------
level(#); see [R] estimation options.
irr reports estimated coefficients transformed to incidence-rate ratios,
that is, exp(b) rather than b. Standard errors and confidence
intervals are similarly transformed. This option affects how results
are displayed, not how they are estimated or stored. irr may be
specified at estimation or when replaying previously estimated
results.
nocnsreport; see [R] estimation options.
display_options: noomitted, vsquish, noemptycells, baselevels,
allbaselevels; see [R] estimation options.
+--------------+
----+ Maximization +-----------------------------------------------------
maximize_options: difficult, technique(algorithm_spec), iterate(#),
[no]log, trace, gradient, showstep, hessian, showtolerance,
tolerance(#), ltolerance(#), nrtolerance(#), nonrtolerance,
from(init_specs); see [R] maximize. These options are seldom used.
Setting the optimization type to technique(bhhh) resets the default
vcetype to vce(opg).
The following option is available with poisson but is not shown in the
dialog box:
coeflegend; see [R] estimation options.