calculate residuals
ll_inner(data, pre_sample, T, d_vec, phi, THETA, q, approx)
data
: data matrix with T observations of q-dimensional process.q
: dimension of the process.approx
: order of the AR-approximation that is supposed to be used. Default is approx=100
.Useful links