I am trying to conduct a power test in order to obtain the power given a sample of 5000 obs on a regression of life satisfaction over lottery. The problem i have is when i try to define my alternative hypothesis. Given the fact that I am making a individual signficance test, my null hypothesis must be =0 and the alternative one should be <>0. The issue is that the command power does not let me use <>0 as a alternative hypothesis.
Here is my code:
Any suggestions to solve this problem with the specification of the alternative hypothesis?
Thank you in advance for the help.
Here is my code:
Code:
reg lifesat_overall lottery test lottery power oneslope 0 <>0, n(5000)
Thank you in advance for the help.
Comment