Hello everyone,
I am currently trying to assess in how far my OLS model suffers from an omitted variable bias by performing an SSC Oster bound test* with psacalc. I am using Stata BE 18.5 on Windows.
My variable of interest is a dummy variable and I always get the error message: r[111] variable not found.
This code exemplifies my issue:
I tried it both with and without the "i" operator, and with and without the mcontrol() option.
The output gives me error messages, as can be seen on the attached image.
Now I am wondering what I am doing wrong. I have been successfully applying the psacalc command with continuous independent variables but with the binary one I always get the error message.
Do I fundamentally misunderstand the command? Or is there a way to implement it with a binary independent variable? Does anyone have a different solution in mind maybe?
Thanks a lot for your help in advance.
*Oster, Emily (2016). "Unobservable Selection and Coefficient Stability: Theory and Validation", Journal of Business Economics and Statistics, Forthcoming
I am currently trying to assess in how far my OLS model suffers from an omitted variable bias by performing an SSC Oster bound test* with psacalc. I am using Stata BE 18.5 on Windows.
My variable of interest is a dummy variable and I always get the error message: r[111] variable not found.
This code exemplifies my issue:
Code:
clear all sysuse auto reg price i.foreign rep78 mpg headroom trunk, robust psacalc delta foreign psacalc delta i.foreign
The output gives me error messages, as can be seen on the attached image.
Now I am wondering what I am doing wrong. I have been successfully applying the psacalc command with continuous independent variables but with the binary one I always get the error message.
Do I fundamentally misunderstand the command? Or is there a way to implement it with a binary independent variable? Does anyone have a different solution in mind maybe?
Thanks a lot for your help in advance.
*Oster, Emily (2016). "Unobservable Selection and Coefficient Stability: Theory and Validation", Journal of Business Economics and Statistics, Forthcoming
Comment