Message-ID: <49E27C83.40302@prodsyse.com>
Date: 2009-04-12T23:42:59Z
From: Spencer Graves
Subject: First Derivative of Data Matrix
In-Reply-To: <CEF25A07-EDEC-464C-94F8-926342FB24E6@comcast.net>
However, estimating derivatives from differencing data amplifies
minor errors. Less noisy estimates can be obtained by first smoothing
and then differentiating the smooth. The "fda" package provides
substantial facilities for this.
Hope this helps.
Spencer Graves
David Winsemius wrote:
> delta(index) is identically 1, so taking first differences is all that
> is needed. If the dtatframe's name is df then:
>
> df$dacflong_dx <- c(NA, diff(acflong)) # the slash would not be a
> legal character in a variable name unless you jumped through some
> hoops that appear entirely without value
>
> If you want to get rid of the first line of df then
>
> df[-1]
>