meantest2.plot.R: Hypothesis Test for a Mean (unknown variance)

Description Usage Arguments Value Examples

View source: R/meantest2.plot.R

Description

Hypothesis Test for a Population Mean (unknown variance)

Usage

1
meantest2.plot(xb, mu0, sig, n, prng = c(-4, 4), side = "two", mt, dig = 4)

Arguments

xb

Sample mean, or sample data

mu0

Population mean value under the null hypothesis

sig

Sample standard deviation (unnecessary when sample data are given)

n

Sample size (unnecessary when sample data are given)

prng

Range of x-axis, Default: c(-4, 4)

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

1
2
meantest2.plot(xb = 12.65, mu0 = 12.5, sig = 0.57, n = 40, side = "up")
meantest2.plot(rnorm(40, 12.65, 0.57), side = "two")

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.