meanpower.plot: Power Function of the Test for a Mean

meanpower.plotR Documentation

Power Function of the Test for a Mean

Description

Power Function of the Test for a Population Mean

Usage

meanpower.plot(mu0, mu1, sig, nv, alp = 0.05, prng, side = "two", mt,
  dig = 4)

Arguments

mu0

Population mean value under the null hypothesis

mu1

Vector of population mean values for which the power should be calculated

sig

Population standard deviation

nv

Sample size vector

alp

Level of significance, Default: 0.05

prng

Range of x-axis

side

Type of the alternative hypothesis ("up", "low", "two"), Default: 'two'

mt

Graph title

dig

Number of digits below the decimal point, Default: 4

Value

None.

Examples

n = c(10, 30, 50, 100)
meanpower.plot(mu0=100, mu1=102, sig=5, nv=n, side="up")
meanpower.plot(mu0=100, mu1=102, sig=5, nv=n, side="two")

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.