Returns a matrix which columns correspond to the error terms. Each column's row will assume value 0 if the observation was not "assigned" to that component.
err(AR, mu, y, z, pk)
a matrix which columns correspond to component specific "residuals", which are equal to 0 for observations not assigned to such component.
a list
with autoregressive components.
Component means.
a time series (currently a numeric vector).
a matrix
which columns contain observations
"assignment". Hence each row will contain one 1 and (g-1) 0's
autoregressive orders.
Davide Ravagli