[R] AR1 in gls function

From: Prodromos Zanis <pzanis_at_geol.uoa.gr>
Date: Fri 15 Apr 2005 - 17:16:38 EST

Dear R-project users

I would like to calculate a linear trend versus time taking into account a first order autoregressive process of a single time series (e.g. data$S80 in the following example) using th gls function.

gls(S80 ~ tt,data=data,corAR1(value, form, fixed))

My question is what number to set in the position of value within corAR1? Should it be the acf at lag 1?

I look forward for your reply

With kind regards

Prodromos Zanis

Dr. Prodromos Zanis
Centre for Atmospheric Physics and Climatology
Academy of Athens
3rd September 131, Athens 11251, Greece
Tel. +30 210 8832048
Fax: +30 210 8832048
e-mail: pzanis@geol.uoa.gr
Web address: http://users.auth.gr/~zanis/

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Apr 15 17:20:40 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:11 EST