View source: R/dependentData_Auxilliary_armaResid.R
arma_s_resid | R Documentation |
Computes the residuals of S-estimates for an ARMA process
arma_s_resid(x, beta_hat, p, q)
x: |
numeric vector. The signal |
beta_hat: |
numeric vector, the AR and MA coefficients |
p: |
AR order |
q: |
MA order |
a_sc: m-scale based on residuals.
File is in dependentData_Auxiliary_armaResid.R
library(signal) library(zeallot) library(pracma) N <- 500 a <- rnorm(N) p <- 1 q <- 0 x <- signal::filter(1, c(1, -0.8), a) beta_s <- arma_est_bip_s(x, p, q, tolX = 1e-8) beta <- c(beta_s$ar_coeffs, beta_s$ma_coeffs) arma_s_resid(x, beta, p, q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.