Variance-Ratio test for the null hypothesis that a time series follows a random walk. See A. Lo and A. C. MacKinlay, "Stock Market Prices do not Follow Random Walks: Evidence from a Simple Specification Test", Review of Financial Studies, 1988, vol. 1, no. 1, pp. 41-66. (https://www.jstor.org/stable/i352805)

## Parameters of the lomackinlay() function

- y: series to examine. It should be given in (probably log) level form.

- q: (int) desired order of differencing for the variance comparison. Typical values are 2, 4, 8 or 16. This parameter has a minimum of 2, and that is also the default value.

- verbosity: (int) Can be set to 0 to skip the printout. Set to 1 to get the main results. Default 2 (print everything).

Returns (since version 1.2) a 4-element column vector with the standard test statistic and (two-sided) p-value pair, and then in 3rd and 4th position the test stat and p-value of a robustified variant of the test.

# Changelog

December 2024: version 1.3, add some labels, switch to markdown for this help text

June 2017: version 1.2, now returning a result matrix, and a few other 
trivial changes

August 2009: version 1.1
