Learn R Programming

VisualizeSimon2Stage (version 0.1.7)

ph2simon4: S4 Object ph2simon4

Description

One or more Simon's two-stage designs.

Usage

ph2simon4(object, type = "minimax", ...)

Arguments

object

a ph2simon object

type

character scalar or vector, see Slots

...

additional parameters, currently not in use

Slots

r1,r

non-negative integer scalars or vectors, number of responses in Stage-1 \(r_1\) and overall \(r\) required exclusively, in other words

  • pass Stage-1 if observed \(>r_1\) response;

  • reject \(H_0\) if observed \(>r\) responses.

n1,n

positive integer scalars or vectors, Stage-1 sample size \(n_1\) and total sample size \(n\).

pu,pa

double scalars

alpha,beta

double scalars

nmax

integer

type

character scalars or vectors, type of Simon's two-stage design, one or more values among

'minimax'

(default) minimum total sample size

'optimal'

minimum expected total sample size under \(p_0\)

'n1'

minimum Stage-1 sample size

'maximax'

to use up the user-provided maximum total sample size, i.e., parameter nmax of function ph2simon

Examples

Run this code
(x = clinfun::ph2simon(pu = .2, pa = .4, ep1 = .05, ep2 = .1)) 
ph2simon4(x, type = 'opt')
ph2simon4(x) # default type = 'minimax'

Run the code above in your browser using DataLab