search for: gls_ex32_ar1

Displaying 1 result from an estimated 1 matches for "gls_ex32_ar1".

2011 Jun 08
1
Autocorrelation in R
...uot; # I've tried to follow the example in Pinheiro & Bates (2004), p. 239-244, with no success. gc_ts = ts(ex32[66:166,"gc"]) yd_ts = ts(ex32[66:166,"yd"]) library(nlme) trend = time(gc_ts) fit_lm = lm(gc_ts ~ trend + yd_ts) acf(resid(fit_lm)) pacf(resid(fit_lm)) gls_ex32_ar1 = gls(gc_ts ~ trend + yd_ts, correlation = corAR1(form= ~yd_ts),method="ML") summary(gls_ex32_ar1) _____________________________________________ Dr. Iuri Gavronski Assistant Professor Programa de P?s-Gradua??o em Administra??o Universidade do Vale do Rio dos Sinos ? UNISINOS Av. Unisino...