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, ...)Value
c("JD3_TEST", "JD3") object that is a list of three parameters:
- valuethe statistical value of the test.
- pvaluethe p-value of the test.
- distributionthe statistical distribution used.
Examples
udr_test <- testofupdownruns(random_t(5, 1000))
udr_test # default print
#> Value: 0.5755218 
#> P-Value: 0.5649 
print(udr_test, details = TRUE) # with the distribution
#> Value: 0.5755218 
#> P-Value: 0.5649 
#> [ Normal with Mean = 0.0 and Stdev = 1.0 ]
test <- statisticaltest(val = 45, pval = 0.1)
print(test)
#> Value: 45 
#> P-Value: 0.1000