pwr.z.test: Power of a Z-Test for Population Mean

Description Usage Arguments Value Examples

View source: R/pwr_z_test.R

Description

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

Usage

1
pwr.z.test(m0, m1, sd, n, sig.level = 0.05, alternative = "two.sided")

Arguments

m0

The value of the population mean from the null hypothesis

m1

An alternative value of the population mean

sd

Population standard deviation

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.z.test(m0 = 3, m1 = 2.5, sd = 1, n = 15,
sig.level = 0.01, alternative = "two.sided")
pwr.z.test(m0 = 3, m1 = 3.5, sd = 1, n = 20,
sig.level = 0.10, alternative = "greater")

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