Description Usage Arguments Value Examples
View source: R/Beta_binomial.R
This function calculates the probability density for second-stage binary outcomes
1 | Beta_binomial(N, n1, x1, beta_par)
|
N |
total number of patients (stage1 + stage2) |
n1 |
total number of patients in stage1 |
x1 |
number of successes in stage1 |
beta_par |
two shape parameters c(alpha,beta) for beta distribution |
a dataframe with two variables:
x2: all possible outcomes (number of successes) for stage2
prediction: density for each outcome
1 2 3 4 | ## Not run:
Beta_binomial(N=40,n1=23,x1=16,beta_par=c(1,1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.