The CNTSELECT Procedure
The OUTPUT statement creates a new data table that includes variables created by the output-options. These variables include the estimates of
, the expected value of the response variable, and the probability of the response variable taking on the current value. Furthermore, if a zero-inflated model was fit, you can request that the output data table contain the estimates of
and the probability that the response is zero as a result of the zero-generating process. For the Conway-Maxwell-Poisson model, the estimates of
,
,
,
, mode, variance, and dispersion are also available. Except for the probability of the current value, these statistics can be computed for all observations in which the regressors are not missing, even if the response is missing. By adding observations that have missing response values to the input data table, you can compute these statistics for new observations or for settings of the regressors that are not present in the data without affecting the model fit.
You can specify only one OUTPUT statement. You can specify the following output-options:
-
OUT=CAS-libref.data-table
-
names the output data table for PROC CNTSELECT to use. You must specify this option before any other options. CAS-libref.data-table is a two-level name, where
- CAS-libref
refers to a collection of information that is defined in the LIBNAME statement and includes the caslib, which includes a path to where the data table is to be stored, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about CAS-libref, see the section Using CAS Sessions and CAS Engine Librefs.
- data-table
specifies the name of the output data table.
-
COPYVAR=SAS-variable-names
COPYVARS=SAS-variable-names
adds SAS variables to the output data table.
-
PRED=name
MEAN=name
names the variable to contain the predicted value of the response variable.
-
PROB=name
names the variable to contain the probability that the response variable will take the actual value, Pr(
).
-
PROBCOUNT(value1 <value2 …>)
outputs the probability that the response variable will take particular values. Each value should be a nonnegative integer. If you specify a noninteger, it is rounded to the nearest integer. The value can also be a list of the form X TO Y BY Z. For example, PROBCOUNT(0 1 2 TO 10 BY 2 15) requests predicted probabilities for counts 0, 1, 2, 4, 5, 6, 8, 10, and 15. This option is not available for the fixed-effects and random-effects panel models.
-
PROBZERO=name
names the variable to contain the value of
, which is the probability that the response variable will take the value of 0 as a result of the zero-generating process. This variable is written to the output file only if the model is zero-inflated.
-
VARIANCE=name
assigns a name to the variable that contains the estimate of variance.
-
XBETA=name
names the variable to contain estimates of
.
-
ZGAMMA=name
names the variable to contain estimates of
.
You can specify the following additional output-options if you specify a Conway-Maxwell-Poisson regression in the MODEL statement:
-
DISPERSION=name
assigns a name to the variable that contains the value of dispersion.
-
GDELTA=name
assigns a name to the variable that contains estimates of
.
-
LAMBDA=name
assigns a name to the variable that contains the estimate of
.
-
MODE=name
assigns a name to the variable that contains the integral part of
(mode).
-
MU=name
assigns a name to the variable that contains the estimate of
.
-
NU=name
assigns a name to the variable that contains the estimate of
.
Last updated: September 15, 2022