I am struggling with a task in which I want to investigate how an additional variable (i.e., human rights) affects my regression results.
My regression model is as follows:
Code:
regress DV IV HR
Task:
1. Generate a set of predictions for a model in which I use all the explanatory variables except human rights with the coefficients estimated over the whole sample.
Code:
regress DV IV
Code:
predict foreignaid
Code:
regress DV IV HR
3. Calculate the % difference between the first two measures to see how much of the dependent variable is explained by the human rights.
Now, I am struggling with the second and third step in Stata. I am also wondering whether my codes for the first two steps are okay.
Any help will be appreciated.
Best regards,
Shazmeen Maroof.
0 Response to Comparing predictions and regression fitted values between two regression models with an additional explanatory varaiable
Post a Comment