changepoint
:
cpt.mean
) to find multiple changepoints within the
data.
changeLight(tFirst, tSecond, type, twl, quantile = 0.9, rise.prob = NA, set.prob = NA, days = 5, plot = TRUE, summary = TRUE)
tFirst
as sunrise or sunset respectively.tFirst
, tSecond
and type
(alternatively give each parameter separately).rise.prob
and/or
set.prob
remain unspecified.TRUE
a plot will be producedTRUE
a summary of the results will be
printedlist
with probabilities for sunrise and
sunset the user settings of the probabilities and the resulting
stationary periods given as a vector
, with the residency sites as
positiv numbers in ascending order (0 indicate movement/migration).
cpt.mean
from the R
Package changepoint
is a
function to find a multiple changes in mean for data where no assumption is
made on their distribution. The value returned is the result of finding the
optimal location of up to Q changepoints (in this case as many as possible)
using the cumulative sums test statistic.
M. Csorgo, L. Horvath (1997) Limit Theorems in Change-Point Analysis. Wiley.
Chen, J. and Gupta, A. K. (2000) Parametric statistical change point analysis. Birkhauser.
changepoint
, cpt.mean
data(hoopoe2)
hoopoe2$tFirst <- as.POSIXct(hoopoe2$tFirst, tz = "GMT")
hoopoe2$tSecond <- as.POSIXct(hoopoe2$tSecond, tz = "GMT")
residency <- changeLight(hoopoe2, quantile=0.9)
Run the code above in your browser using DataLab