Description Usage Arguments Author(s) See Also Examples

Print results for sample size for hypothesis testing of 2 means

1 2 |

`x` |
object of class 'n.for.2means' |

`...` |
further arguments passed to or used by methods. |

Virasakdi Chongsuvivatwong <[email protected]>

'n.for.2p'

1 2 3 | ```
n.for.2means(mu1 = 10, mu2 = 14, sd1=3, sd2=3.5)
n.for.2means(mu1 = 10, mu2 = 7:14, sd1=3, sd2=3.5) -> a
a
``` |

```
Loading required package: foreign
Loading required package: survival
Loading required package: MASS
Loading required package: nnet
Estimation of sample size for testing Ho: mu1==mu2
Assumptions:
alpha = 0.05
power = 0.8
n2/n1 = 1
mu1 = 10
mu2 = 14
sd1 = 3
sd2 = 3.5
Estimated required sample size:
n1 = 11
n2 = 11
n1 + n2 = 22
Estimation of sample size for testing Ho: mu1==mu2
Assumptions:
alpha = 0.05
power = 0.8
n2/n1 = 1
mu1 mu2 sd1 sd2 n1 n2
1 10 7 3 3.5 19 19
2 10 8 3 3.5 42 42
3 10 9 3 3.5 167 167
4 10 10 3 3.5 Inf Inf
5 10 11 3 3.5 167 167
6 10 12 3 3.5 42 42
7 10 13 3 3.5 19 19
8 10 14 3 3.5 10 10
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.