This documentation is for a version of the software that is not covered by Standard Support. Select a different version from the version selector in the banner, or access the latest documentation.
The OUTPUT statement creates a data table that contains observationwise statistics, which are computed after the model is fitted. The variables in the input data table are not included in the output data table in order to avoid data duplication for large data tables; however, variables that you specify in the COPYVARS= option are included.
The output statistics are computed on the basis of the parameter estimates. By default, the predicted values are computed for observations that have missing response values. You can use the OUTPUT statement to obtain the predicted values for new observations.
You must specify the following option:
OUT=CAS-libref.data-table
names the output data table for PROC LMIXED 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 syntax elements:
ALLSTATS
ALLSTAT
adds all available statistics to the output data table.
ALPHA=number
specifies the significance level for the construction of confidence intervals in the output data table. The confidence level is , where number must be between 0 and 1. By default, number is equal to the value of the ALPHA= option in the MODEL statement, or 0.05 if that option is not specified.
COPYVAR=variable
COPYVARS=(variables)
copies one or more variables from the input data table to the output data table.
keyword <=name>
specifies the statistics to include in the output data table and optionally names the new variables that contain the statistics. Specify a keyword for each desired statistic (see the following list of keywords), followed optionally by an equal sign and a variable to contain the statistic.
If you specify keyword=name, the new variable that contains the requested statistic has the specified name. If you omit the optional =name after a keyword, then a default name is used.
You can specify the following values for keyword to request statistics:
Table 8: Keywords for Output Statistics
Keyword
Description
Expression
PRED
Linear predictor
PREDPA
Marginal linear predictor
STDERR
Standard error of linear predictor
STDERRPA
Standard error of marginal linear predictor
RESIDUAL
Residual
RESIDUALPA
Marginal residual
PEARSON
Pearson-type residual
PEARSONPA
Marginal Pearson-type residual
STUDENT
Studentized residual
STUDENTPA
Studentized marginal residua
LCL
Lower prediction limit for linear predictor
LCLPA
Lower confidence limit for marginal linear predictor
UCL
Upper prediction limit for linear predictor
UCLPA
Upper confidence limit for marginal linear predictor