# Critical values for the Leybourne unit root test
import numpy as np

c = np.array(
    (
        (99.9999, 0.00819),
        (99.999, 0.01050),
        (99.99, 0.01298),
        (99.9, 0.01701),
        (99.8, 0.01880),
        (99.7, 0.02005),
        (99.6, 0.02102),
        (99.5, 0.02186),
        (99.4, 0.02258),
        (99.3, 0.02321),
        (99.2, 0.02382),
        (99.1, 0.02437),
        (99.0, 0.02488),
        (97.5, 0.03045),
        (95.0, 0.03662),
        (92.5, 0.04162),
        (90.0, 0.04608),
        (87.5, 0.05024),
        (85.0, 0.05429),
        (82.5, 0.05827),
        (80.0, 0.06222),
        (77.5, 0.06621),
        (75.0, 0.07026),
        (72.5, 0.07439),
        (70.0, 0.07859),
        (67.5, 0.08295),
        (65.0, 0.08747),
        (62.5, 0.09214),
        (60.0, 0.09703),
        (57.5, 0.10212),
        (55.0, 0.10750),
        (52.5, 0.11315),
        (50.0, 0.11907),
        (47.5, 0.12535),
        (45.0, 0.13208),
        (42.5, 0.13919),
        (40.0, 0.14679),
        (37.5, 0.15503),
        (35.0, 0.16403),
        (32.5, 0.17380),
        (30.0, 0.18443),
        (27.5, 0.19638),
        (25.0, 0.20943),
        (22.5, 0.22440),
        (20.0, 0.24132),
        (17.5, 0.26123),
        (15.0, 0.28438),
        (12.5, 0.31242),
        (10.0, 0.34699),
        (7.5, 0.39354),
        (5.0, 0.45995),
        (2.5, 0.58098),
        (1.0, 0.74573),
        (0.9, 0.76453),
        (0.8, 0.78572),
        (0.7, 0.81005),
        (0.6, 0.83863),
        (0.5, 0.87385),
        (0.4, 0.91076),
        (0.3, 0.96501),
        (0.2, 1.03657),
        (0.1, 1.16658),
        (0.01, 1.60211),
        (0.001, 2.03312),
        (0.0001, 2.57878),
    )
)
# constant+trend model
ct = np.array(
    (
        (99.9999, 0.00759),
        (99.999, 0.00870),
        (99.99, 0.01023),
        (99.9, 0.01272),
        (99.8, 0.01378),
        (99.7, 0.01454),
        (99.6, 0.01509),
        (99.5, 0.01559),
        (99.4, 0.01598),
        (99.3, 0.01637),
        (99.2, 0.01673),
        (99.1, 0.01704),
        (99.0, 0.01731),
        (97.5, 0.02029),
        (95.0, 0.02342),
        (92.5, 0.02584),
        (90.0, 0.02791),
        (87.5, 0.02980),
        (85.0, 0.03158),
        (82.5, 0.03327),
        (80.0, 0.03492),
        (77.5, 0.03653),
        (75.0, 0.03813),
        (72.5, 0.03973),
        (70.0, 0.04135),
        (67.5, 0.04298),
        (65.0, 0.04464),
        (62.5, 0.04631),
        (60.0, 0.04805),
        (57.5, 0.04981),
        (55.0, 0.05163),
        (52.5, 0.05351),
        (50.0, 0.05546),
        (47.5, 0.05753),
        (45.0, 0.05970),
        (42.5, 0.06195),
        (40.0, 0.06434),
        (37.5, 0.06689),
        (35.0, 0.06962),
        (32.5, 0.07252),
        (30.0, 0.07564),
        (27.5, 0.07902),
        (25.0, 0.08273),
        (22.5, 0.08685),
        (20.0, 0.09150),
        (17.5, 0.09672),
        (15.0, 0.10285),
        (12.5, 0.11013),
        (10.0, 0.11917),
        (7.5, 0.13104),
        (5.0, 0.14797),
        (2.5, 0.17775),
        (1.0, 0.21801),
        (0.9, 0.22282),
        (0.8, 0.22799),
        (0.7, 0.23387),
        (0.6, 0.24109),
        (0.5, 0.24928),
        (0.4, 0.25888),
        (0.3, 0.27173),
        (0.2, 0.28939),
        (0.1, 0.32200),
        (0.01, 0.43218),
        (0.001, 0.54708),
        (0.0001, 0.69538),
    )
)
