The LMIXED Procedure

OUTPUT Statement

  • OUTPUT OUT=CAS-libref.data-table<COPYVARS=(variables)><keyword <=name>>…<keyword <=name>>;

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 1 minus sans-serif-italic number, 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 ModifyingAbove eta With caret equals bold x prime ModifyingAbove bold-italic beta With caret plus bold z prime ModifyingAbove bold-italic gamma With caret
PREDPA Marginal linear predictor ModifyingAbove eta With caret Subscript m Baseline equals bold x prime ModifyingAbove bold-italic beta With caret
STDERR Standard error of linear predictor StartRoot normal upper V normal a normal r left-bracket ModifyingAbove eta With caret minus bold z prime bold-italic gamma right-bracket EndRoot
STDERRPA Standard error of marginal linear predictor StartRoot normal upper V normal a normal r left-bracket ModifyingAbove eta With caret Subscript m Baseline right-bracket EndRoot
RESIDUAL Residual r equals y minus ModifyingAbove eta With caret
RESIDUALPA Marginal residual r Subscript m Baseline equals y minus ModifyingAbove eta With caret Subscript m
PEARSON Pearson-type residual r slash StartRoot ModifyingAbove normal upper V normal a normal r With caret left-bracket y vertical-bar bold-italic gamma right-bracket EndRoot
PEARSONPA Marginal Pearson-type residual r Subscript m Baseline slash StartRoot ModifyingAbove normal upper V normal a normal r With caret left-bracket y right-bracket EndRoot
STUDENT Studentized residual r slash StartRoot ModifyingAbove normal upper V normal a normal r With caret left-bracket r right-bracket EndRoot
STUDENTPA Studentized marginal residua r Subscript m Baseline slash StartRoot ModifyingAbove normal upper V normal a normal r With caret left-bracket r Subscript m Baseline right-bracket EndRoot
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
VARIANCE Conditional variance of response variable ModifyingAbove normal upper V normal a normal r With caret left-bracket y vertical-bar bold-italic gamma right-bracket
VARIANCEPA Marginal variance of response variable ModifyingAbove normal upper V normal a normal r With caret left-bracket y right-bracket


Last updated: April 08, 2021