meantest1.plot: Hypothesis Test for a Mean (known variance)

Description Usage Arguments Value Examples

View source: R/ch10-fn.R

Description

Hypothesis Test for a Population Mean (known variance)

Usage

1
2
meantest1.plot(xb, mu0, sig, n, prng, side = "two", mt, dig = 4,
  xlab = "Sample Mean")

Arguments

xb

Sample mean, or sample data

mu0

Population mean value under the null hypothesis

sig

Population standard deviation

n

Sample size (unnecessary when sample data are given)

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

xlab

Label of x-axis, Default: 'Sample Mean'

Value

None.

Examples

1
2
meantest1.plot(xb=12.64, mu0=12.5, sig=0.5, n=40, side="up")
meantest1.plot(rnorm(40, 12.6, 0.5), mu0=12.5, sig=0.5, side="up")

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.