Takes boundEst object and creates data frame with p-values and confidence intervals for stopping points between Nmin and Nmax.
stopTable(object, Nrange = c(0,Inf),
Srange=c(0,Inf),output="all",file="stopTableOutput.csv")# S3 method for stopTable
print(x,digits=c(3,5),maxnprint=Inf,...)
Either a stopTable object, a data.frame, or a .csv file.
The stopTable object is a list with elements
confidence level=1-lowerError-upperError
c.i. error on lower side
c.i. error on upper side
probability of success under null hypothesis
character, which boundaries are binding: 'both', 'lower', or 'upper'
character, alternative hypothesis either 'two.sided', 'less', or 'greater'
a data.frame with variables, S,N, estimate, lower (confidence limit), upper (confidence limit), pL (lower one-sided p-value), pU (upper one-sided p-value), pts (two-sided p-value), and UL (character giving part of the boundary: 'lower', 'upper', or 'end')
The data.frame (or .csv file) returns the table element of the stopTable with the other elements added as variables (or columns).
object of class boundEst
numeric vector, range of total trials to output boundary points (see details)
numeric vector, range of successes to output boundary points (see details)
character, type of output, 'all','csv', or 'print'
character, name of file to output comma separated file
object of class 'stopTable'
vector of length 1 or 2, first element is digits to print for estimates and confidence intervals (and p-values if length(digits)=1), second element is digits for p-values
number of rows to print from the table
additional arguments to be passed to print function, not needed
Create table with statistics at selected stopping points. The arguments Nrange and Srange
select which points to output. If Nrange and Srange is of length 2, then the function selects output within the ranges of the associated N and S values.
If Nrange and Srange is of length 1, then the function selects only output with exactly the specified values. Note that because Nrange is the only argument
that starts with 'N', then stopTable(object,N=41) and stopTable(oject,Nrange=41) are equivalent.
Output is a stopTable object (default), a data.frame (output='data.frame'), or a .csv file (output='csv'). The print.stopTable
function is an S3 print function for stopTable objects, i.e., it determines the default printing to screen for those objects.