Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The MODEL Procedure

BY Statement

BY variables;
A BY statement is used with the FIT statement to obtain separate estimates for observations in groups defined by the BY variables. Note that if an output model file is written, using the OUTMODEL= option, the parameter values stored are those from the last BY group processed. To save parameter estimates for each BY group, use the OUTEST= option in the FIT statement.

A BY statement is used with the SOLVE statement to obtain solutions for observations in groups defined by the BY variables. The BY statement only applies to the DATA= data set.

BY group processing is done separately for the FIT and the SOLVE tasks. It is not possible to use the BY statement to estimate and solve a model for each instance of a BY variable. If BY group processing is done for the FIT and the SOLVE tasks, the parameters obtained from the last BY group processed by the FIT statement are used by the SOLVE statement for all of the BY groups.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.