LinearityTest._summary_table#

LinearityTest._summary_table()[source]#

Render as a table, companions included.

The header names the null, the alternative, the order, the delay when the test has one, the sample, the verdict, and Hansen’s threshold when there is one; the rows are this record and its companions; the notes carry Hansen’s simulated critical values and Teräsvirta’s model-selection reading.

Return type:

SummaryTable

Returns:

The SummaryTable that str() and the notebook renderer display.

Example

>>> import numpy as np
>>> test = terasvirta(np.random.default_rng(0).standard_normal(200), order=1)
>>> table = test._summary_table()
>>> [row[0] for row in table.rows]
['Teräsvirta', 'H04', 'H03', 'H02']