Learn R Programming

VisualizeSimon2Stage (version 0.1.5)

Sprintf.ph2simon: Short Paragraph to Describe a ph2simon Object

Description

To create a short paragraph to describe a ph2simon object.

Usage

Sprintf.ph2simon(model, type = c("minimax", "optimal", "n1", "maximax"), ...)

Value

Function Sprintf.ph2simon returns a noquote

character scalar.

Arguments

model

ph2simon object

type

character scalar, type of Simon's two-stage design,

'minimax'

(default) minimum total sample size

'optimal'

minimum expected total sample size under \(p_0\)

'n1'

minimum Stage-1 sample size

'maximax'

maximum total sample size (as provided by end-user)

...

additional parameters, currently not in use

Examples

Run this code
library(clinfun)
(x = ph2simon(pu = .2, pa = .4, ep1 = .05, ep2 = .1)) 
Sprintf.ph2simon(x, type = 'minimax')
Sprintf.ph2simon(x, type = 'optimal')
Sprintf.ph2simon(x, type = 'n1')
Sprintf.ph2simon(x, type = 'maximax')

Run the code above in your browser using DataLab