REG procedure

PROC REG is a procedure that performs linear regression analysis (simple and multivariate). In addition, it is capable of many different methods of variable selection (stepwise, backwards, forward, CP, R-Square, etc.), performing diagnostics, testing hypotheses, creating datasets with predicted values, residuals, confidence statistics, etc., and plotting the fitted model, residuals, and QQ- and PP-plots.

Syntax

   
PROC REG < options > ; 
  MODEL dependents=< regressors > < / options > ; 
  BY variables ; 
  FREQ variable ; 
  ID variables ; 
  VAR variables ; 
  WEIGHT variable ; 
  OUTPUT < OUT=SAS-data-set > keyword=names   < ... keyword=names > ; 
  PLOT < yvariable*xvariable > < =symbol> < ...yvariable*xvariable> < =symbol> < / options > ;
  TEST equation,< , ...,equation> < / option > ; 
RUN; QUIT;