p_function: Calculate the p-value

Description Usage Arguments Value Examples

Description

p_function calculate the p-value of data given the epsilon and the test type. Cpp_p_function, an alternative for the same purpose, is much faster and recommended.

Usage

1
p_function(epsilon = 0, ifF = FALSE, myData = list())

Arguments

epsilon

A value used for equivalence tests. Only valid when ifF == FALSE.

ifF

A bool value indicating test type. When ifF = TRUE, standard F test is used; otherwise, equivalence F test.

myData

A list of vector of numerics.

Value

P value.

Examples

1
2
3
4
5
6
a = rnorm(100)
b = rnorm(150)
d = rnorm(200)
e = runif(250)
p_function(0, FALSE, list(a, b, d, e))
Cpp_p_function(0, FALSE, list(a, b, d, e))

ziyanyin/DEEE documentation built on May 4, 2019, 11:23 p.m.