Hello SAS Community,
I was able to get the correct answer for this question using SAS Enterprise Guide; However, I'd like to know how this can be done through code rather than the point-and-click method. Could someone please tell me how to find R-squared for the final model?
_______________________________________________________________________________________________________________________________
Using x22 as the dependent variable and x7 to x21 as predictor variables using stepwise regression with a .05 enter level and .05 leave level, what is the R-squared for the final model?
x7 | x21 | x22 |
3.9 | 8.4 | 65.1 |
2.7 | 7.5 | 67.1 |
3.4 | 9 | 72.1 |
3.3 | 7.2 | 40.1 |
3.4 | 9 | 57.1 |
2.8 | 6.1 | 50.1 |
3.7 | 7.2 | 41.1 |
3.3 | 7.7 | 56.1 |
3.6 | 8.2 | 56.1 |
4.5 | 6.7 | 59.1 |
3.2 | 8.4 | 68.1 |
4.9 | 6.6 | 53.1 |
5.6 | 7.9 | 58.1 |
3.9 | 8.2 | 72.1 |
4.5 | 7.6 | 62.1 |
3.2 | 7.1 | 71.1 |
4 | 7.2 | 50.1 |
4.1 | 8.2 | 58.1 |
3.4 | 7.9 | 55.1 |
4.5 | 8.8 | 67.1 |
3.8 | 7 | 50.1 |
5.7 | 9.9 | 70.1 |
3.6 | 8.1 | 60.1 |
2.4 | 8 | 65.1 |
4.1 | 5.5 | 55.1 |
3.6 | 7 | 58.1 |
3 | 7 | 70.1 |
3.3 | 5.6 | 55.1 |
3 | 7.2 | 70.1 |
3.6 | 6.2 | 52.1 |
3.4 | 7.1 | 44.1 |
2.5 | 6.2 | 51.1 |
3.7 | 7.6 | 44.1 |
3.3 | 9 | 62.1 |
4 | 6.7 | 54.1 |
3.2 | 7.1 | 51.1 |
3.4 | 7.2 | 57.1 |
4.1 | 9.9 | 77.1 |
3.6 | 7.6 | 65.1 |
4.9 | 5.8 | 53.1 |
3.4 | 8.4 | 61.1 |
3.8 | 7.9 | 61.1 |
5.1 | 7.6 | 72.1 |
5.1 | 8.4 | 55.1 |
2.5 | 6.5 | 65.1 |
4.1 | 7.7 | 58.1 |
4.3 | 8 | 67.1 |
3.8 | 7.1 | 60.1 |
3.7 | 8.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