From the course: Introduction to Stata
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Ordinary least squares regression: Solution - Stata Tutorial
From the course: Introduction to Stata
Ordinary least squares regression: Solution
(upbeat music) - [Narrator] Let's have a look at the solutions to our Ordinary Least Squares Regression challenge. I've already loaded up the nlsw88 data here, and our first challenge was to estimate the determined hourly wages using education, age, race, and marriage status as explanatory variables. We can complete the first challenge by estimating a regression model using the following variables. Regress wage against grade, age, married, and race. We should note that married and race are categorical variables, so it makes sense here to include the i. prefix to both variables. So let's go ahead and do that. Okay, let's execute this. The model has an R-squared of 11%, and the variables grade, married, and black appear statistically significant in our model. The second challenge was to diagnose the model. There are various tests we can perform, but let's check for heteroskedasticity and functional form…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
OLS regression and interpretation5m 36s
-
(Locked)
Categorical explanatory variables in OLS4m 53s
-
(Locked)
OLS regression diagnostics8m 31s
-
(Locked)
Exploring functional form in OLS regression5m 29s
-
(Locked)
OLS hypothesis testing4m 54s
-
(Locked)
Presenting OLS regression estimates5m 23s
-
(Locked)
Ordinary least squares regression: Challenge51s
-
(Locked)
Ordinary least squares regression: Solution3m 18s
-
(Locked)
-
-
-
-