R: Power and sample size for the F distribution

f.power {haplo.stats} | R Documentation

## Power and sample size for the F distribution

### Description

Power and sample size for the F distribution given non-centrality, degrees of freedom, alpha, N (for f.power), and power (for f.sample.size)

### Usage

    f.power(n, nc, df1, alpha)
    f.power.dif(n, nc, df1, alpha, power)
    f.sample.size(nc, df1, alpha, power, lower=20, upper=10000)

### Arguments

`n` | sample size
`nc` | non-centrality parameter
`df1` | degrees of freedom for numerator of f distribution
`alpha` | type-I error
`power` | desired power (for sample size)
`lower` | lower limit for search space for sample size solution
`upper` | upper limit for search space for sample size solution

### Value

power, the difference in power from target power, and sample size, respectively for the three functions, assuming an F distribution for the test statistic

[Package haplo.stats version 1.7.9 Index]