Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.UnivariateStatistic

Print function for Univariate Statistic Test Object


Description

Print description of univariate statistic result & test object.

Usage

## 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

#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

Heller-Heller-Gorfine Tests of Independence and Equality of Distributions

v2.3.2
GPL-3
Authors
Barak Brill & Shachar Kaufman, based in part on an earlier implementation by Ruth Heller and Yair Heller.
Initial release
2019-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.