View source: R/assuranceTable.R
assuranceTable | R Documentation |
Tabulate assurance results for presentation.
assuranceTable(earlyStudy, laterStudy, nsim, ...)
earlyStudy |
Data defining the initial study |
laterStudy |
Data defining the later study |
nsim |
Number of simulations of later trial |
... |
Miscellaneous other arguments |
Returns a data frame with
low |
Lower interval bounds. |
high |
Upper interval bounds. |
interval.probability |
The probability of getting a treatment effect in the given bound, based on the early study data. |
prob.of.success |
The probability of getting a positive result in the later study. May have NaN value if no simulations fall in given interval. |
Paul Metcalfe
initial.data <- new.gaussian(delta.mu=6, sd1=10, sd2=20, m1=50, m2=20)
later.study <- new.twoArm(size=study.size(grp1.size=100,
grp2.size=200),
significance=0.05)
assuranceTable(initial.data, later.study, 100000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.