t_stat | R Documentation |
It computes the t-statistics tests for the coefficients of an Arima model
t_stat(modarima, decim = 6)
modarima |
an |
decim |
an integer, the precision of the results |
modarima
may be created with the function Arima
(package forecast
) or arimax
(package TSA)
It returns a matrix 2 x (number of free coefficients) of the t-statistics and the p-values.
Yves Aragon
if(require("forecast"))
{set.seed(123)
y1 = arima.sim(n=100,list(ar=-.7), sd=sqrt(4))
my1 = Arima(y1, order=c(1,0,0),include.mean = FALSE)
t_stat(my1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.