CPANEL Procedure

OUTPUT Statement

  • OUTPUT OUT=libref.data-table <options>;

The OUTPUT statement creates a data table that contains observationwise statistics that PROC CPANEL computes after fitting the model. In order to avoid data duplication for large data tables, only the identification and dependent variables are included in the output data table unless you specify additional variables in the COPYVAR= option. To avoid further data duplication, the OUTPUT statement is allowed only with MODEL statements that request a single estimation. If you have multiple MODEL statements, then each OUTPUT statement is associated with the MODEL statement that immediately precedes it.

You must specify the following option:

OUT=libref.data-table

names the output data table for PROC CPANEL to use. You must specify this option before any other options. libref.data-table is a two-level name, where

libref

refers to a collection of information that is defined in the LIBNAME statement and includes the library, 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 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 input data table to the output data table.

PREDICTED=name
P=name

writes the predicted values to the output data table.

RESIDUAL=name
R=name

writes the residuals to the output data table.

Last updated: July 09, 2026