Message-ID: <692b7b29-add5-4fc6-bc81-0393f13d813c@email.android.com>
Date: 2013-07-02T22:35:27Z
From: Jeff Newmiller
Subject: acf question...
In-Reply-To: <1372782061.37244.YahooMailNeo@web140504.mail.bf1.yahoo.com>
Then you are posting in the wrong forum, since this is a forum about getting R to do things for which you already understand the theory.
As to the results you are getting, I highly recommend reading the details section of ?ccf.
BTW The Posting Guide indicates that you should post in text format because HTML mutilates R code. This is a setting in your email program.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
Venkatesh Nagarajan <gocanon at yahoo.com> wrote:
>I am trying to understand lagged correlations.
>?
>x= 1:100;
>y = c(rep(NA,40), 1:60)ccf(x = x, y = y, lag.max=100,
>na.action=na.pass, type = "correlation")
>?
>I was hoping to see max cor at lag = 40. But I am not. What am I doing
>wrong?
>?
>Thanks
>VN
> [[alternative HTML version deleted]]
>
>
>
>------------------------------------------------------------------------
>
>______________________________________________
>R-help at 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.