This function creates tables from the output of function
gsb().
tab(x,
what=c("all", "cumulative all", "success", "futility",
"indeterminate", "success or futility",
"cumulative success", "cumulative futility",
"cumulative indeterminate", "cumulative success or futility",
"sample size"),
atDelta = "default",
wide=FALSE,
digits = 3,
export = FALSE,
sep = ",",
path = tempdir())Returns a matrix with the results from the output of function
gsb().
object of class gsbMainOut which is returned by the function
gsb().
string to specify the content of the table. It should correspond
one level of OC$type in the output of gsb().
if "default" the table shows the operating characteristics
evaluated at the actually calculated true values entered in argument
truth of function gsbSimulation. Alternatively a
numeric of arbitrary length can be entered. Then the operating
characteristics are displayed for the true value delta entered in this
numeric using a linear interpolation. This only works if type.update = "treatment effect".
logical. If TRUE a zable in wide format is produced. Only
possible if grid.type = "table".
numeric of length 1 specifying the number of digits which should be
displayed in the table. The function round() is used. If what = "sample size" and digits = 0, the function uses ceiling() instead.
logical. if TRUE the table is exported and saved as .cvs-file.
character. the field separator string. if the table is
exported the values are separated by this string.
character. to specify the location to which to table should
be exported. the default 'tempdir()' exports the table to a temporary
directory.
Florian Gerber <florian.gerber@math.uzh.ch>
## please see examples of function 'gsb'.
Run the code above in your browser using DataLab