For values of n0 covered in the matrix data (typically from 20 to 500) the function calls n1.get and finds the minimal value of n1 achieving the target power.
n1.get.vector(data, beta, p0, delta, alpha, type = 1)a list with element x (giving range of values of n0) and y (giving minimal solutions for n1 of power > beta). integer indicates
power database for selected value of alpha and delta (See details)
scalar target for power
scalar value of baseline probability
value of clinically relevant difference
value of nominal size of test
type of minimum solution (See details)
Chris J. Lloyd
This function is called by n1.get.solution and will likely never be run by the user.
The data matrix will be one of the 85 main databases.
If type=1, the smallest value N1 of n1 so that power > beta is returned. If type=2, the smallest value N1 of n1 so that power > beta for all n1>=N1 is returned.
C.J. Lloyd (2022) Exact samples sizes for clinical trials subject to size and power constraints. Preprint. tools:::Rd_expr_doi("10.13140/RG.2.2.11828.94085")