Make `exact_r` and `exact_sas` methods for `bin_prob_test()`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Read the implementation of bin_prob_test() and its tests to see how it currently calculates one-sided and two-sided p-values. Add exact_r and exact_sas methods that follow the tail-selection and two-sided conventions described in the issue. The right-tail numerical correction is left unresolved, so clarify its expected behavior before considering the work done.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
There are some methodological differences between SAS and R for these tests.
- One-sided p-values. Both use the same tail sums, $P(X \le x)$ and $P(X \ge x)$.
- R returns whichever tail you ask for.
- PROC FREQ keeps only the smaller tail, in
XPL_BINorXPR_BIN, and leaves the other variable missing.
- Two-sided p-values.
binom.test()uses the "minlike" method: it adds the probabilities of every outcome no more likely than the observed one.- SAS uses the "central" method: twice the smaller tail, capped at 1. The two agree only when $p_0 = 0.5$, where the null distribution is symmetric.
- Numerical calculation (not a definition difference).
- SAS's right tail behaves as if it were computed as $1 − P(X \le x − 1)$. That subtraction leaves an absolute error of about 1e-14.
- R computes the upper tail directly.
Instead of trying to rectify them, we'll use two different methods. Not sure what to do about the right tail correction.
- Ngôn ngữ chính
- R
- Star
- 0
- Fork
- 0
- Merge trung bình
- 3 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 6
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 posit-dev/segue
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
Add tests for rank statistics on non-censored numeric dataCó thể đã có người làm @topepo đã nhận 6 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Grouped/By APIĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Tất cả issue của posit-dev/segue
Issue tương tự
-
Remove {watcher} importĐang mởcould enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
The-Strategy-Unit/nhp_inputs#758 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
paul-buerkner/brms#1985 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
cull_database_entries() machine_id filter is a no-op due to missing comma in row indexingCó thể đã có người làm @madhavzanwar đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
PecanProject/pecan#4281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[R] abandon_ship() looks up `call` with an inheriting get(), so its "no call" guard never firesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởComponent: R
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rubenarslan/formr#60 ·