[R] help on ar(1)

2009-08-31 Thread Gaspar Núñez
Hi

i´m trying to run a modelo of the form

y(t) = b1 + b2x(t) + b3x(t) + u(t)

and i need to introduce an ar(1) into the equation
can anyone tell me about a reference with an example

thanks again



-- 
Gaspar

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help on ar(1)

2009-08-31 Thread ONKELINX, Thierry
Have a look at the gls() function from the nlme package. The helpfile of gls() 
contains an example of an AR1 structure.

HTH,

Thierry 



ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and 
Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology 
and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
thierry.onkel...@inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more than 
asking him to perform a post-mortem examination: he may be able to say what the 
experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure 
that a reasonable answer can be extracted from a given body of data.
~ John Tukey

-Oorspronkelijk bericht-
Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens 
Gaspar Núñez
Verzonden: maandag 31 augustus 2009 17:08
Aan: r-help@r-project.org
Onderwerp: [R] help on ar(1)

Hi

i´m trying to run a modelo of the form

y(t) = b1 + b2x(t) + b3x(t) + u(t)

and i need to introduce an ar(1) into the equation can anyone tell me about a 
reference with an example

thanks again



--
Gaspar

[[alternative HTML version deleted]]


Druk dit bericht a.u.b. niet onnodig af.
Please do not print this message unnecessarily.

Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer 
en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is
door een geldig ondertekend document. The views expressed in  this message 
and any annex are purely those of the writer and may not be regarded as stating 
an official position of INBO, as long as the message is not confirmed by a duly 
signed document.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help on ar(1)

2009-08-27 Thread Gaspar Núñez
Hi

Assume i have three time series Y, X and Z
and the model is

Y(t) = b1 + b2*X(t) + b3*Z(t) + u(t)

How can I introduce an autoregressive term ar(1) to solve for
serial autocorrelation?

i've been trying with ar(arg1,arg2,arg3) but it only works for
individual series


thanks a lot


-- 
Gaspar

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.