Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Option to visualize event times and censoring times as dots in ppc_km_overlay()

Đã đóng
#558 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
r
Lĩnh vực
data-visualization

Hướng nghiên cứu

Bắt đầu từ điểm vào ppc_km_overlay() và kiểm tra cách hiện tại hàm này vẽ các đường cong Kaplan-Meier cho thời điểm xảy ra sự kiện và thời điểm kiểm duyệt. Thêm hành vi được yêu cầu cho các chấm tùy chọn, đồng thời giữ nguyên hành vi mặc định của đường cong, sau đó xác minh rằng cả hai chế độ trực quan hóa đều tạo ra các biểu đồ như mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I was presenting my work related to predictive model checking for survival models (Predictive Assessment and Comparison of Bayesian Survival Models for Cancer Recurrence) at StanCon and somebody asked me about a case where there are so few event times that the Kaplan-Meier curve is far from continuous. In this case, plotting the Kaplan-Meier curve for the observations is clumsy. A similar issue can arise if the time is discretized and there are only few different time points where events are happening, even though the number of events is high.

For these kinds of cases, I think it would be useful if ppc_km_overlay() had a binary parameter dots that could be used to plot the event times and censoring times as dots instead of plotting the Kaplan-Meier curve. The default value could still be dots = FALSE, which plots the Kaplan-Meier curve as before. There are some examples below.

When plotting the Kaplan-Meier curves for these two models, it can be a little bit unintuitive to say which one is fitting and which one is not, since you have to look at the points where the Kaplan-Meier curves fall.

Image Image

In my opinion, the dots would be a clearer visualization, because from these you can instantly tell, which model fits and which does not.

Image Image

Another nice thing about the dots is that they can indicate the exact locations where censoring is happening.

Image Image

I have already implemented this in my own fork so I can make the pull request relatively easily if this is deemed to be a wanted feature for the package.

Ngôn ngữ chính
R
Star
443
Fork
93
Merge trung bình
15 giờ 46 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stan-dev/bayesplot

Tất cả issue của stan-dev/bayesplot

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.