Re: [R] ar(1)

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [R] ar(1)
From: Achim Zeileis (zeileis@ci.tuwien.ac.at)
Date: Mon 15 Jan 2001 - 06:09:36 EST


Message-ID: <3A620780.2485F429@ci.tuwien.ac.at>

Meriema Belaidouni wrote:
>
> hello,
> can some body help me to get
> the residuals and the variance of coefficient after an autoregressive
> fit.
> These values are present in the ar function of the package ts.
> But I don't know how to makes it work.

Just have a look at the help pages
> help(ar)

If you fit the model by
> ar.fit <- ar(x)

you can have a look at
> ar.fit$resid # the residuals
> ar.fit$ar # the coefficients
> ar.fit$asy.var.coef # the asymptotic-theory variance matrix of
                        the coefficient estimates.
or the other elements of the returned list.

Achim

---------------------------
Achim Zeileis
Institut für Statistik
Technische Universität Wien

> thank you.
> meriema
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:41 EST