table(gpa1$age)
19 20 21 22 23 25 26 30
7 48 56 26 1 1 1 1
<- lm(colGPA ~ hsGPA, data=gpa1)
olsres stargazer(olsres,type="text")
===============================================
Dependent variable:
---------------------------
colGPA
-----------------------------------------------
hsGPA 0.482***
(0.090)
Constant 1.415***
(0.307)
-----------------------------------------------
Observations 141
R2 0.172
Adjusted R2 0.166
Residual Std. Error 0.340 (df = 139)
F Statistic 28.845*** (df = 1; 139)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01