Liliana Forzani wrote:
Thats the correlation matrix for an autoregressive(1) process, with equal time increments.Hi, I have data normal with mean 0, I was wondering how to get (using R) the best r such that the correlation matrix of my data has the form
{r^(i-j)} where (i,j) indicate row and columm respectivly. Thanks. Liliana
So you could use arima with your regressors in xreg and ar1 structure,
or package nlme with corAR1 correlation structure.
Kjetil
______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
--
Kjetil Halvorsen.
Peace is the most effective weapon of mass construction.
-- Mahdi Elmandjra______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
