print.cspa_test: Print Method for CSPA Test Results

View source: R/cspa-test.R

print.cspa_testR Documentation

Print Method for CSPA Test Results

Description

Displays a formatted summary of the CSPA test output, including the test statistic (theta), p-value, decision, and key estimation details.

Usage

## S3 method for class 'cspa_test'
print(x, digits = 4, ...)

Arguments

x

An object of class "cspa_test", as returned by cspa_test.

digits

Integer; number of decimal places for numeric output. Default 4.

...

Additional arguments (currently ignored).

Value

Invisibly returns x.

Examples


sim <- do_sim(J = 3, n = 250, a = 1, c = 0, rho_u = 0.4)
result <- cspa_test(sim$Y, sim$X, level = 0.05, trim = 2, R = 500L)
print(result)



forecastdom documentation built on Nov. 2, 2026, 1:10 a.m.