`samplesize.etasq`

determines the sample size, when specified the number of group, effect size to be detected, desired statistical power, and significance level.

1 | ```
samplesize.etasq(k, delta, power=.80, sig.level=.05)
``` |

`k` |
a numeric contains the number of group |

`delta` |
a numeric contains the effect size ( |

`power` |
a numeric contains the desired statistical power (default 0.80) |

`sig.level` |
a numeric contains the significance level (default 0.05) |

Return a numeric containing the appropriate sample size in each group.

Yasuyuki Okumura

Department of Social Psychiatry,

National Institute of Mental Health,

National Center of Neurology and Psychiatry

yokumura@blue.zero.jp

Cohen J (1988). Statistical power analysis for the behavioral sciences (2nd ed). Hillsdale, NJ: Erlbaum.

`ind.oneway`

, `ind.oneway.second`

1 2 3 | ```
##Cohen (1988) ex.8.10
f <- .25
samplesize.etasq(k=4, delta= f^2/(1+f^2), power=.80, sig.level=.05)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.