Skip to main content
. Author manuscript; available in PMC: 2015 Jan 11.
Published in final edited form as: J Am Stat Assoc. 2014;109(505):63–77. doi: 10.1080/01621459.2013.848807

Algorithm 1.

Quantile Regression with Time Series Errors (QUARTS)

Inputs: y, X, q, τ
  1. Set ϕ(0) = 0𝖳, ε(0) = 0.

  2. Given ϕ(j−1), ε(j−1), let
    iq=yiϕ1(j1)εi1(j1)ϕq(j1)εiq(j1),i{q+1,,n}βτ(j)=QRfit(,,τ)ε(j)=yXβτ(j)
  3. Using QR, fit the regression model εi(j)=ϕ1εi1(j)++ϕqεiq(j)+δi, for i ∈ {q + 1, …, n}.

    Let ϕ(j) be the estimated AR row vector.

  4. Repeat steps 2 and 3 until ϕ(j) and βτ(j) converge to steady-state solutions ϕ and βτ, respectively. Return βτ as the final coefficient vector and ϕ as the final AR model coefficient vector.