The REGCORR statement calculates and returns the results for linear, quadratic, or cubic polynomial regression models.
Example: | Fitting a Regression Model |
specifies one or more numeric variables. If you do not specify this option, then all numeric variables in the table are used.
specifies that results are returned only for the n regression with the highest R-square value (the highest coefficient of determination) . If n is smaller than the number of regressions computed by the statement, then the actual number of computed regression is returned.
specifies the highest polynomial degree in the regression model. By default, ORDER=1, and the model is a simple linear regression. Specify ORDER=2 for a quadratic model and ORDER=3 for a cubic model.
Default | 1 |
saves the result table so that you can use it in other IMSTAT procedure statements like STORE, REPLAY, and FREE. The value for table-name must be unique within the scope of the procedure execution. The name of a table that has been freed with the FREE statement can be used again in subsequent SAVE= options.
specifies either a quoted string that contains the SAS expression that defines the temporary variables or a file reference to an external file with the SAS statements.
Alias | TE= |
specifies the list of temporary variables for the request. Each temporary variable must be defined through SAS statements that you supply with the TEMPEXPRESS= option.
Alias | TN= |
if this option is specified,
the variable-list of size k is
interpreted to consist of one response variable and k–1
regressors. Otherwise, the variable-list is
used to compute all pairs of regressions where the response variable
cycles through the left-hand side of the list. For example, if variable-list is x1
, x2
, x3
,
and x4
, then the REGCORR statement
computes the following regression models: