pwr.p.test: Power of a Z-Test for Population Proportion

Description Usage Arguments Value Examples

View source: R/pwr_p_test.R

Description

Computes the Power of a Z-test for the Population Proportion

Usage

1
pwr.p.test(p0, p1, n, sig.level = 0.05, alternative = "two.sided")

Arguments

p0

The value of the population proportion (in decimals) from the null hypothesis

p1

An alternative value of the population proportion

n

Sample size

sig.level

Significance level, default is 0.05

alternative

type of alternative, with values "two.sided","less" or "greater", default is "two.sided"

Value

Power of the test

Examples

1
2
3
4
pwr.p.test(p0 = 0.10, p1 = 0.15, n = 100,
sig.level = 0.01, alternative = "two.sided")
pwr.p.test(p0 = 0.2, p1 = 0.25, n = 50,
sig.level = 0.10, alternative = "greater")

alurie43/stats4332 documentation built on Dec. 19, 2021, 1:37 a.m.