print.HHG.Test.Result: Print function for result of HHG tests

Description Usage Arguments Details Value Author(s) Examples

View source: R/HHG.R

Description

Print description of for result object of HHG tests

Usage

1
2
## S3 method for class 'HHG.Test.Result'
print(x, ...)

Arguments

x

result of hhg.test, hhg.test.2.sample or

hhg.test.k.sample

...

Additional arguments can be sent to function. Currently not supported.

Details

Function prints description of results for the hhg.test, hhg.test.2.sample and hhg.test.k.sample functions. Displays: test statistics, pvalues (if permutations were performed) and description of sample size (also displays group sizes and equality of distribution tests).

Value

Does not return value. Only prints description of test statistic and results.

Author(s)

Barak Brill

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#output for independence test
n = 50
X = hhg.example.datagen(n, '4indclouds') 

Dx = as.matrix(dist((X[1,]), diag = TRUE, upper = TRUE))
Dy = as.matrix(dist((X[2,]), diag = TRUE, upper = TRUE))

hhg = hhg.test(Dx, Dy, nr.perm = 200)

#output for k-sample test
n = 50
D = hhg.example.datagen(n, 'FourClassUniv')
Dx = as.matrix(dist(D$x, diag = TRUE, upper = TRUE))

hhg = hhg.test.k.sample(Dx, D$y, nr.perm = 200)

Example output

HHG Ver. 2.1 - package for non parametric tests of independence and equality of distributions.
type vignette('HHG') or ?HHG for documentation, examples and a quickstart guide.
use suppressPackageStartupMessages(library(HHG)) to suppress this message.
Warning message:
In hhg.test.k.sample(Dx, D$y, nr.perm = 200) :
  Note: hhg.test.k.sample has reproducible permutation P-value only on nr.threads=1

HHG documentation built on May 15, 2021, 9:06 a.m.