pPower: Draw Type I error, Type II error, Power, Cohen's D

Description Usage Arguments Examples

Description

Draw Type I error, Type II error, Power, Cohen's D

Usage

1
2
3
pPower(m0 = 0, m1 = 4, sigma = 1, n = 1, sig = 0.05,
       H0 = TRUE, H1 = TRUE, body = TRUE, tail = TRUE, beta = TRUE, power = TRUE,
       reject = TRUE, level = TRUE, AxisZ = FALSE)

Arguments

m0

Population mean of the null hypothesis

m1

Population mean of the alternative hypothesis

sigma

Standard deviation of the two populations

n

Sample size

sig

Significant level

H0

Draw the density of H0

H1

Draw the density of H1

body

Add color to the body part of H0

tail

Add color to the tail part of H0

beta

Add color of the Type II error part of H1

power

Add color to the Power part of H1

reject

Show the annotations of "Reject H0"

level

Show the significant level

AxisZ

Show the x-axis based on the normalized value

Examples

1

likanzhan/acqr documentation built on Dec. 2, 2020, 10:14 a.m.