statisticaltest: Generic Function For 'JDemetra+' Tests

View source: R/tests_regular.R

statisticaltestR Documentation

Generic Function For 'JDemetra+' Tests

Description

Generic function to format the results of 'JDemetra+' tests.

Usage

statisticaltest(val, pval, dist = NULL)

## S3 method for class 'JD3_TEST'
print(x, details = FALSE, ...)

Arguments

val, pval, dist

statistical parameters.

x

the object to print.

details

boolean indicating if the statistical distribution should be printed.

...

further arguments (ignored).

Value

c("JD3_TEST", "JD3") object that is a list of three parameters:

  • value the statistical value of the test.

  • pvalue the p-value of the test.

  • distribution the statistical distribution used.

Examples

udr_test <- testofupdownruns(random_t(5, 1000))
udr_test # default print
print(udr_test, details = TRUE) # with the distribution


palatej/rjd3toolkit documentation built on Oct. 30, 2024, 10:46 p.m.