normtest.plot: Plot the PDF of Test Statistic under the Normal Distribution

Description Usage Arguments Value Examples

View source: R/normtest.plot.R

Description

Plot the PDF of Test Statistic under the Normal Distribution

Usage

1
normtest.plot(md, mu0 = 0, se = 1, prng = c(-4, 4), side = "two", xlab = "Sample Mean", pvout = TRUE)

Arguments

md

Difference of sample means or test statistic

mu0

Difference of population means under the null hypothesis, Default: 0

se

Standard error of the difference of sample means, Default: 1

prng

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

side

Type of the alternative hypothesis, Default: 'two'

xlab

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

pvout

Print p-value? Default: TRUE

Value

None.

Examples

1
2
normtest.plot(11.5 - 10.4, se = sqrt(2.2 / 20 + 2.4 / 25))
normtest.plot(1.93, xlab = "Test Statistic")

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