Class Exercise Simpleregression Ceo-Salary
Class Exercise Simpleregression Ceo-Salary
a) What is the predicted CEO salary if roe is 30%--hint: use 30 for ROE if that is how data entered in
CEOSAL1.dta
b) Calculate the predicted salaries by the regression model for each level of ROE (find yhat !!!)
using the command in Stata: predict salaryhat—note that it will be stored under salaryhat
variable in your data set (please save your data set immediately after this step).
c) Calculate the residuals, uhat, using: predict uhat, res command.
d) Show that R-squared (coefficient of determination) is computed as Model SS/ Total SS
(alternatively: Regression Sum of Squares/ Total Sum of Squares) and verify that it is 0.0132
. reg lsalary roe
How is the above regression different in terms of R-squared results? lsalary=log(salary) and is generated
with the command; gen lsalary=log(salary) in Stata.