print.UnivariateStatistic: Print function for Univariate Statistic Test Object

Description Usage Arguments Details Value Author(s) Examples

View source: R/HHG_univariate.R

Description

Print description of univariate statistic result & test object.

Usage

1
2
## S3 method for class 'UnivariateStatistic'
print(x, ...)

Arguments

x

result of hhg.univariate.ind.stat, hhg.univariate.ks.stat,

hhg.univariate.ind.combined.test or hhg.univariate.ks.combined.test

...

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

Details

Function prints description of univariate test statistic and test results. Displays: test statistics, pvalues (for the combined test function), partition sizes and type of test statistic used in terms of variant, aggregation.type and score.type.

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
16
17
18
19
20
21
#generate statistics and test results, and print them
ind.stat = hhg.univariate.ind.stat(1:20,1:20,variant = 'ADP',
  aggregation.type = 'sum',score.type = 'both',mmax = 5)
print(ind.stat)

ks.stat = hhg.univariate.ks.stat(1:50,sample(c(rep(0,25),rep(1,25))),
  aggregation.type = 'both',score.type = 'both',mmax = 10)
print(ks.stat)

## Not run: 

ind.combined = hhg.univariate.ind.combined.test(1:20,1:20,
  combining.type = 'Both',mmax = 5,nr.perm = 100)
print(ind.combined)


## End(Not run)

ks.combined = hhg.univariate.ks.combined.test(1:50,
  sample(c(rep(0,25),rep(1,25))),combining.type = 'Both')
print(ks.combined)

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