'Running Observed Power test in R

Is it possible to calculate observed power of ANCOVA/ ANOVA test in R? I could not get it right using the 'pwr' package. Any advise on the right package to calculate observed power?

As an alternative, I ran the test in SPSS and the result is shown here:

here (SPSS result)

The observed power results that I could not produce in R are the one in the red box.

In R, I have obtained all of the numbers (e.g. p-value, partial eta square, F score). They are similar with the ones in SPSS except for the observed power. Images below are the output from R for the similar test.

R output 1 - summary of the results

R output 1 - summary of the results

R output 2 - detailed view of the results

R output 2 - detailed view of the results

R output 3 - partial eta square of the independent variables in the model

R output 3 - partial eta square of the independent variables in the model

Any help/ hint would be really appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source