```
clear
set obs 420
set seed 12345
gen str = rnormal(20,2)
gen u = rnormal(0,20)
gen testscr = 700 -2 * str + u
regress testscr str
```

```
Number of observations (_N) was 0, now 420.
Source | SS df MS Number of obs = 420
-------------+---------------------------------- F(1, 418) = 15.45
Model | 6383.10498 1 6383.10498 Prob > F = 0.0001
Residual | 172661.265 418 413.065226 R-squared = 0.0357
-------------+---------------------------------- Adj R-squared = 0.0333
Total | 179044.369 419 427.313531 Root MSE = 20.324
------------------------------------------------------------------------------
testscr | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
str | -1.855817 .472094 -3.93 0.000 -2.783791 -.9278429
_cons | 696.4934 9.55519 72.89 0.000 677.7112 715.2756
------------------------------------------------------------------------------
```