From dutangc at gmail.com  Sun Nov 15 19:00:23 2009
From: dutangc at gmail.com (Christophe Dutang)
Date: Sun, 15 Nov 2009 19:00:23 +0100
Subject: [Rd] Fwd: AR(2) modelling
In-Reply-To: <971536df0911150913g342b60bfk1645cb24dce31d69@mail.gmail.com>
References: <9D959877-C897-4301-AE52-1A8B4E292822@gmail.com>
	<9078B936-1E5B-44A2-9C1C-0762F054E708@gmail.com>
	<alpine.OSX.1.00.0911151103230.36843@tystie.local>
	<882952CD-BFBF-45F1-B199-FB67F0DDD2EA@gmail.com>
	<971536df0911150913g342b60bfk1645cb24dce31d69@mail.gmail.com>
Message-ID: <FBF3F315-41B0-45AE-A6EE-01F67477B3C5@gmail.com>

Thanks Gabor,

My mistake was I used the 'cor' function rather than the function  
'acf' with "correlation" argument.

Christophe

Le 15 nov. 2009 ? 18:13, Gabor Grothendieck a ?crit :

> Try this:
>
> debug(stats:::ar.yw.default)
>
> and then run the ar function to step through the ar code so you can
> see the results line by line and understand what it is doing at a very
> detailed level.
>
> On Sun, Nov 15, 2009 at 10:06 AM, Christophe Dutang  
> <dutangc at gmail.com> wrote:
>> As you are sure of the accuracy of your code, why don't you tell me  
>> where is
>> my mistake?
>>
>> Le 15 nov. 2009 ? 12:03, Prof Brian Ripley a ?crit :
>>
>>>
>>>
>>> --
>>> Brian D. Ripley,                  ripley at stats.ox.ac.uk
>>> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
>>> University of Oxford,             Tel:  +44 1865 272861 (self)
>>> 1 South Parks Road,                     +44 1865 272866 (PA)
>>> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>>
>> --
>> Christophe Dutang
>> Ph.D. student at ISFA, Lyon, France
>> website: http://dutangc.free.fr
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>

--
Christophe Dutang
Ph.D. student at ISFA, Lyon, France
website: http://dutangc.free.fr



[Rd] Fwd: AR(2) modelling
Christophe Dutang