Skip to contents

Constructor for testResult Object

Usage

new_testResult(Tn, Tn_star, decision, p_value, hypothesis, B, alpha, h1, h2)

Arguments

Tn

Float value for \(T_n\)

Tn_star

Float values (as vector of length \(B\)) representing all randomized values of \(T_n^*\)

decision

Binary numeric (0, 1) value for acceptance (0) or rejection (1)

p_value

Float for \(p\) value

hypothesis

String for type of hypothesis tested

B

Integer representing the number of resampling iterations

alpha

Float between 0 and 1 for significance level

h1

Bandwidth chosen for smoothing along row axis

h2

Bandwidth chosen for smoothing along column axis

Value

An object of class testResult that fully characterizes a test result.

Examples

res <- new_testResult(1, c(0.5, 1.5), 0, 0.5, "equality", 2, 0.05, 0.1, 0.1)
res
#> Test Result for equality type 
#>  ----------- 
#> Tn: 1 
#> p_value: 0.5 
#> decision:  Accepted H0