dirconn.methods.statespace.var_to_state_space#
- dirconn.methods.statespace.var_to_state_space(coefs: Any, noise_cov: Any) InnovationsForm#
Write a VAR model in innovations form.
Ais the companion matrix,C = [A_1 ... A_p](the top block row ofA),K = [I 0 ... 0]^TandSigma = noise_cov.- Parameters:
coefs (array_like, shape (n_lags, n_channels, n_channels)) – VAR coefficients
[lag - 1, target, source].noise_cov (array_like, shape (n_channels, n_channels)) – Innovation covariance, symmetric positive definite.
- Return type:
- Raises:
ValueError – For an unstable model (spectral radius at least 1), whose reduced models do not exist, or a covariance that is not positive definite.