meeting_probs | R Documentation |
Probabilities of meeting positivity threshold under target HR
meeting_probs(summary, lhr_pos, lhr_target = 1, rand_ratio = 1)
summary |
DataFrame. Summary dataframe from bounds.R |
lhr_pos |
List. Log HRs for positive threshold |
lhr_target |
Scalar. Target log HR to calculate the probability of meeting positivity thresholds |
rand_ratio |
Integer. If patients are randomized k:1 between experimental intervention and control, rand_ratio should be inputted as k. Example: if patients are randomized 1:1 between experimental and control, k=1. If patients are randomized 2:1 between experimental and control, k=2. |
Array. Probabilities of meeting positivity threshold under target HR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.