t.test(data1$sl~data1$sx)
##
## Welch Two Sample t-test
##
## data: data1$sl by data1$sx
## t = 1.7744, df = 21.591, p-value = 0.09009
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -567.8539 7247.1471
## sample estimates:
## mean in group 0 mean in group 1
## 24696.79 21357.14
According to the result of the regression analysis, sx has not an effect on sl. The result of t-test also indicates that there is no academic year salary (sl) difference between female and male (sx). Therefore, these two results are similar.