Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e.divisve produced breakpoints depending on min.size #1

Open
istvan60 opened this issue Nov 26, 2020 · 1 comment
Open

e.divisve produced breakpoints depending on min.size #1

istvan60 opened this issue Nov 26, 2020 · 1 comment

Comments

@istvan60
Copy link

Dear Authors!

I was wondering, what could be the problem, when running e.divisive on multiple time series no matter how the function is parametrized the step between the change points equals approx. the min.size.

If min.size=100 then the gap between the breakpoints will scatter around 100, and so on.


library(ecp)
library(geoChronR) #only needed for plotting

start_time=1779 #the actual date of the first data point
res_short=e.divisive(as.matrix(df.wide_short), sig.lvl=0.001, R=1000, min.size=10, alpha=1)
corr_estimates_short=res_short$estimates+start_time
plotTimeseriesStack(plot.df_short_filtered)+
    geom_vline(xintercept = corr_estimates_short)

Any assistance is highly appreciated!

Yours sincerely,

István

@zwenyu
Copy link
Owner

zwenyu commented Dec 12, 2020

It's likely because the time series is not piece-wise stationary with the specified min.size so the algorithm will try to segment as much as possible. You may want to try transforming the time series first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants