CNTSELECT Procedure

Getting Started: CNTSELECT Procedure

The CNTSELECT procedure is similar in use to other regression model procedures in the SAS System. For example, the following statements are used to estimate a Poisson regression model:

proc cntselect data=mylib.one;
   model y = x / dist=poisson;
run;

The response variable y is numeric and has nonnegative integer values.

This section illustrates two simple examples that use PROC CNTSELECT. The data are taken from Long (1997). This study examines how factors such as gender (fem), marital status (mar), number of young children (kid5), prestige of the graduate program (phd), and number of articles published by a scientist’s mentor (ment) affect the number of articles (art) published by the scientist.

The first 10 observations are shown in Figure 1.

Figure 1: Article Count Data

Obsartfemmarkid5phdment
130121.380008.0000
210113.5900019.0000
300112.1200010.0000
430111.800004.0000
510113.4100010.0000
620102.100002.0000
700112.260005.0000
860113.8500016.0000
920002.260002.0000
1010124.2900010.0000


The following SAS statements estimate the Poisson regression model.

/*-- Poisson Regression --*/
proc cntselect data=mylib.long97data;
   model art = fem mar kid5 phd ment / dist=poisson method=quanew;
run;

The "Model Fit Summary" table that is shown in Figure 2 lists several details about the model. By default, the CNTSELECT procedure uses the Newton-Raphson optimization technique. The maximum log-likelihood value is shown, in addition to two information measures—Akaike’s information criterion (AIC) and Schwarz’s Bayesian information criterion (SBC)—which can be used to compare competing Poisson models. Smaller values of these criteria indicate better models.

Figure 2: Estimation Summary Table for a Poisson Regression

The CNTSELECT Procedure

Model Fit Summary
Dependent Variableart
Number of Observations915
Data SetLONG97DATA
ModelPoisson
Log Likelihood-1651.06
Maximum Absolute Gradient0.001295
Number of Iterations11
Optimization MethodQuasi-Newton
AIC3314.113
SBC3343.026
Covariance EstimationHessian


Figure 3 shows the parameter estimates of the model and their standard errors. All covariates are significant predictors of the number of articles, except for the prestige of the program (phd), which has a p-value of 0.6271.

Figure 3: Parameter Estimates of Poisson Regression

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept10.3046170.1029822.960.0031
fem1-0.2245950.054614-4.11<.0001
mar10.1552430.0613752.530.0114
kid51-0.1848820.040127-4.61<.0001
phd10.0128230.0263970.490.6271
ment10.0255430.00200612.73<.0001


To allow for variance greater than the mean, you can fit the negative binomial model instead of the Poisson model by specifying the DIST=NEGBIN option, as shown in the following statements. Whereas the Poisson model requires that the conditional mean and conditional variance be equal, the negative binomial model allows for overdispersion, in which the conditional variance can exceed the conditional mean.

/*-- Negative Binomial Regression --*/
proc cntselect data=mylib.long97data;
   model art = fem mar kid5 phd ment / dist=negbin(p=2) method=quanew;
run;

Figure 4 shows the fit summary and Figure 5 shows the parameter estimates.

Figure 4: Estimation Summary Table for a Negative Binomial Regression

The CNTSELECT Procedure

Model Fit Summary
Dependent Variableart
Number of Observations915
Data SetLONG97DATA
ModelNegBin(p=2)
Log Likelihood-1560.96
Maximum Absolute Gradient0.070336
Number of Iterations12
Optimization MethodQuasi-Newton
AIC3135.917
SBC3169.649
Covariance EstimationHessian


Figure 5: Parameter Estimates of Negative Binomial Regression

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept10.2561540.1385601.850.0645
fem1-0.2164040.072672-2.980.0029
mar10.1504850.0821061.830.0668
kid51-0.1764230.053060-3.320.0009
phd10.0152660.0360400.420.6719
ment10.0290830.0034708.38<.0001
_Alpha10.4416180.0529678.34<.0001


The parameter estimate for _Alpha of 0.4416 is an estimate of the dispersion parameter in the negative binomial distribution. A t test for the hypothesis upper H 0 colon alpha equals 0 is provided. It is highly significant, indicating overdispersion (p less-than 0.0001).

The null hypothesis upper H 0 colon alpha equals 0 can be also tested against the alternative alpha greater-than 0 by using the likelihood ratio test, as described by Cameron and Trivedi (1998, pp. 45, 77–78). The likelihood ratio test statistic is equal to minus 2 left-parenthesis script upper L Subscript upper P Baseline minus script upper L Subscript upper N upper B Baseline right-parenthesis equals minus 2 left-parenthesis negative 1651 plus 1561 right-parenthesis equals 180, which is highly significant, providing strong evidence of overdispersion.

Last updated: July 09, 2026