breakpoints(): Better handling of time
@GreatEmerald đang làm issue này rồi.
Từ ngày 29/9/2020.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
At the moment, the time attribute in breakpoints() gets lost most of the time, leading to output such as:
Optimal 2-segment partition:
Call:
breakpoints.matrix(X = X, y = y, h = h, breaks = breaks, hpc = hpc)
Breakpoints at observation number:
104
Corresponding to breakdates:
0.4521739
This is not useful, as the breakdates should actually tell you which year and day the break happened, rather than in which part of the time series it happened (that's already given by the observation number).
It works properly if the input is a ts object, since then datatsp is preserved. However, it is rare to run breakpoints() over a ts rather than a bfastpp() data.frame. The latter contains time as a column, which should then be preserved.
I propose to handle time better and different from the other covariates in X. If the input is ts, then decompose its input into year fractions as per bfastpp. If the input is a data.frame, make use of the time column. Add a time element to the result that holds the timestamps, either as POSIXct or year fractions.
This is a prerequisite to better plotting of breakpoints() diagnostics, as as it is it is impossible to plot the time series with correct labels, or to put the breakpoint at a particular time.
- Ngôn ngữ chính
- R
- Star
- 6
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bfast2/strucchangeRcpp
-
Tweak at the endĐang mởquestion
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
bfast2/strucchangeRcpp#38 · 1 bình luận ·
-
efp.matrix: implement lrvar and vcov parametersCó thể làm lại được @appelmar đã nhận 2043 ngày trước và không có pull request nào đang mở. Đang mởenhancement
bfast2/strucchangeRcpp#32 · 2 bình luận · 1 người được giao ·
-
bug help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
bfast2/strucchangeRcpp#22 · 2 bình luận ·
-
Why is the critval table static?Đang mởhelp wanted question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
bfast2/strucchangeRcpp#20 · 1 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
bfast2/strucchangeRcpp#16 ·
Tất cả issue của bfast2/strucchangeRcpp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bennettoxford/opencodecounts#170 ·
-
complexity::1-low effort::1-hours priority::3-could
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jumpingrivers/audit.workbench#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
complexity::1-low effort::1-hours priority::3-could
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
jumpingrivers/audit.connect#71 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug complexity::1-low effort::1-hours priority::2-should
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jumpingrivers/audit.base#61 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
pharmaverse/admiraldev#580 ·