Description Usage Arguments Value Examples
This function calculates de sample size for hypotesys tests considering the following hypotesis:
H_{0}:\text{ } μ \neq μ_{0}
H_{0}:\text{ } \bar{p} \neq p_{0}
H_{0}:\text{ } μ ≤q \text{ or } ≥q μ_{0}
H_{0}:\text{ } \bar{p} ≤q \text{ or } ≥q p_{0}
| 1 2 | 
| p | Population proportion. | 
| p0 | Hypothesized proportion. | 
| mu | Population mean. | 
| mu0 | Hypothesized mean. | 
| alpha | Level of significance. | 
| alternative | 
 | 
The sample size.
| 1 2 3 4 | nPowerSample(p=0.03, p0=0.05)
nPowerSample(p=0.02, p0=0.05)
nPowerSample(mu=100, mu0=120,sd=24)
nPowerSample(mu=100, mu0=110,sd=24,beta=0.05,alternative = 2)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.