Calculates the sample size basted on the number of predictors and draw a power analysis chart. Use this test for one of the following tests:

Simple Linear Regression

Multiple Linear Regression

One Way ANOVA

f^{2} = | R^{2} | , R^{2} = | f^{2} |

1 - R^{2} | 1 + f^{2} |

__Example:__

Linear regression with 4 predictors, α=0.05, power=0.8.

A sample of 85 will identify model with R^{2}=0.13. (or f=0.3873 or f^{2}=0.15)

i.e. the power of a model with a smaller R^{2} will be lower than 0.8 .

The following R code should produce the same results