Learn R Programming

HHG (version 2.3.7)

print.UnivariateStatistic: Print function for Univariate Statistic Test Object

Description

Print description of univariate statistic result & test object.

Usage

# S3 method for UnivariateStatistic
print(x, ...)

Value

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

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.

Author

Barak Brill

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.

Examples

Run this code

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

if (FALSE) {

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

}

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

Run the code above in your browser using DataLab