p2_fun | R Documentation |
This is the function to calculate the probability p2 when p1 and odds ratio are given.
p2_fun(p1, theta)
p1 |
A vector containing the probabilities of the outcome falling into each level of the control arm. |
theta |
The log odds ratio according to expected effect of the experimental treatment. |
A numeric vector representing the expected probability distribution of outcomes across levels for the experimental group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.