Description Usage Arguments Value Examples

Compute power for a single sample proportion test Takes phi, degrees of freedom, and a range of sample sizes. Alpha is .05 by default, alternative values may be entered by user

1 |

`p1` |
expected proportion (a.k.a. alternative proportion) |

`p0` |
null proportion |

`nlow` |
starting sample size |

`nhigh` |
ending sample size |

`alpha` |
Type I error (default is .05) |

`tails` |
number of tails for test (default is 2) |

`by` |
Incremental increase in sample (e.g. nlow = 10, nhigh = 24, by = 2, produces estimates of 10, 12, and 14) |

Power for Tests of Single Proportion

1 |

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.