I'll assume that your design matrix, X, already has a column of 1s for the intercept term. Then according to the SAS/STAT documentation for regression, the formula for the adjusted R-squared is
p = ncol(X);
AdjR = 1 - (n-1)/(n-p)*(1-rSquare);
... View more