| sar.gc.coef | R Documentation | 
This function extracts the spline autoregression (SAR) coefficients from an SAR model for Granger-causality analysis.
See sar.gc.bootstrap for more details regarding the use of index.
sar.gc.coef(fit, index = c(1, 2))
fit | 
 object of SAR model from   | 
index | 
 a pair of component indices for multiple time series 
or a sequence of lags for single time series (default =   | 
matrix of selected SAR coefficients (number of lags by number of quantiles)
y1 <- stats::arima.sim(list(order=c(1,0,0), ar=0.5), n=64)
y2 <- stats::arima.sim(list(order=c(1,0,0), ar=-0.5), n=64)
tau <- seq(0.1,0.9,0.05)
y.sar <- qspec.sar(cbind(y1,y2),tau0=tau,p=1)
A <- sar.gc.coef(y.sar$fit,index=c(1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.