Learn R Programming

mixAR (version 0.22.8)

err_k: Utility function for MixAR

Description

Calculates residuals under a certain component of the mixture.

Usage

err_k(AR, mu, y, z, p, pk)

Value

e

a vector containing component specific residuals.

Arguments

AR

a list with autoregressive parameters.

mu

component means.

y

a time series (currently a numeric vector).

z

a vector of allocation to a specific component.

p

maximum autoregressive order

pk

autoregressive order of the component.

Author

Davide Ravagli