Description Usage Arguments Value
Calculate trial probabilities (posterior and predictive)
1 2 | est_trial_prob(d, ppos_q = 0.95, ppos_sim = 1000,
post_method = "approx", a1 = 1, b1 = 1, a2 = 1, b2 = 1)
|
d |
The Trial data |
ppos_q |
The vector of cut-points to consider |
ppos_sim |
Number of simulations from posterior predictive to use in PPoS(q) calculation |
post_method |
Method used to calculate P(X > Y + delta), one of 'exact' (integration), 'approx' (normal), 'sim' (monte carlo) |
a1 |
Prior shape for treatment 1 |
b1 |
Prior scale for treatment 1 |
a2 |
Prior shape for treatment 2 |
b2 |
Prior scale for treatment 2 |
Updates 'd' inplace but also returns the updated 'd'. 'post' - current posterior probability, 'post_int' - posterior probability when follow-up enrolled individuals, 'post_fin' - posterior probability when follow-up to maximum sample size, 'ppos_intq' - predictive probability of success given q if follow-up enrolled individuals, 'ppos_finq' - predictive probability of success given q if follow-up to maximum sample size,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.