Hi All,
I'm working with data with lots of internal variation; an example vector is this:
data <- c(1, 1.5, 2, 1.7, 2, 2.1, 3, 5, 9, 15)
My interest is to find out whether
despite its internal variation
the distribution
*overall*
trends upward or downward; also I need a *single* value indicating that trend for the whole distribution.
I've been trying out the following methods:
1. mean derivative:
mean(diff(data, differences = 1))
2. mean second derivative:
mean(diff(data, differences = 2))
3. polynomial regression:
data <- c(1, 1.5, 2, 0, 2, 2.1, 3, 5, 9, 10)
pos <- c(1:10)
mod <- lm(data ~ pos + I(pos^2)) # I for 'as is'
summary(mod)
I'm not sure whether any of these methods is going in the right direction and if so, which one is. If the polynomial regression is the way forward, which of the coeffcients indicates the slope? Also are there other methods available? Which ones?
Best wishes and many thanks in advance
Christoph
-- Albert-Ludwigs-Universität Freiburg
Projekt-Leiter DFG-Forschungsprojekt "Multimodale Turn-Abschlusssignale"