The CSPATIALREG Procedure
The OUTPUT statement creates a data table that contains observationwise statistics that PROC CSPATIALREG computes after fitting the model. These observationwise statistics include the estimates of
, the expected value of the response variable, and the residual. In order to avoid data duplication for large data tables, the variables in the input data table are not included in the output data table unless you specify them in the COPYVAR= option.
You can specify only one OUTPUT statement. You must specify the following option:
-
OUT=CAS-libref.data-table
-
names the output data table for PROC CSPATIALREG 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.
You can also specify the following options:
-
COPYVAR=variable
COPYVARS=variables
transfers one or more variables from the primary input data table to the output data table.
-
PRED=name
MEAN=name
assigns a name to the variable that contains the predicted value of the response variable.
-
RESID=name
RESIDUAL=name
assigns a name to the variable that contains the residuals (that is, the difference between the observed and predicted values of the response variable).
-
XBETA=name
names the variable that contains estimates of
.
Last updated: September 15, 2022