
Chanti T. answered 03/23/24
Mathematics Tutoring (JH, HS, College)
In STATA, type the command as such:
regress (y-dependent variable, x-independent variable(s))
(*Here, the y-variable goes first, then your x-variable(s). When running this command, the x-variables can be one or more than one.)
Another option is to click STATISTICS near the top left, click LINEAR MODELS, and then click LINEAR REGRESSION. Next, a pop-up box will come up, and that will be when you add your dependent variable (y) and any independent variables (X) that you want to use.
These will both work, which ever way is easiest for you.