I am interested in calculating the power for the beta effect size, for example
Call:
lm(formula = log1p(y) ~ x)
Residuals:
Min 1Q Median 3Q Max
-0.5684 -0.1881 -0.0413 0.1494 1.2312
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.59725 0.02460 24.279 <2e-16 ***
x -0.06087 0.05514 -1.104 0.27
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.2551 on 1667 degrees of freedom
Multiple R-squared: 0.0007306, Adjusted R-squared: 0.0001312
F-statistic: 1.219 on 1 and 1667 DF, p-value: 0.2697
So, the beta (effect size) for x here is -0.06087. Can I calculate the power of detecting current effect size with two-tailed significant level of 0.05 in the following equation
Z(power)=abs(beta)/se-1.96=0.06087/0.05514-1.96=-0.85
Power=pnorm(Z(power))=0.196
So can I say with current sample size, I have 20% power to detect the significant associations between x and y with current effect size.