Stata Help

Bivariate linear regression in Stata

A bivariate linear regression evaluates a linear relationship between an x (predictor) and y (predicted) variable. To run a bivariate linear regression in Stata, the command is regress [y variable] [x variable]

Additionally, you can specify , beta to display standardized coefficients. So, the new command is regress [y variable] [x variable], beta

To learn about alternate options to calculate error terms, see the tutorial.