assuranceTable: Tabulated assurance results

View source: R/assuranceTable.R

assuranceTableR Documentation

Tabulated assurance results

Description

Tabulate assurance results for presentation.

Usage

assuranceTable(earlyStudy, laterStudy, nsim, ...)

Arguments

earlyStudy

Data defining the initial study

laterStudy

Data defining the later study

nsim

Number of simulations of later trial

...

Miscellaneous other arguments

Value

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.

Author(s)

Paul Metcalfe

Examples


  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)

scientific-computing-solutions/assurance documentation built on June 28, 2023, 12:31 p.m.