simon_oc {VisualizeSimon2Stage}R Documentation

Operating Characteristics of Simon's Two-Stage Design

Description

Operating characteristics of one Simon's two-stage design.

Usage

simon_oc(prob, R, object, ...)

## S3 method for class 'ph2simon'
simon_oc(prob, R = 10000L, object, ...)

## S3 method for class 'ph2simon4'
simon_oc(
  prob,
  R = 10000L,
  object,
  ...,
  r1 = object@r1,
  n1 = object@n1,
  r = object@r,
  n = object@n
)

Arguments

prob

named double vector, true response rate(s) p of (multiple) drug(s). The names(prob) should be the name(s) of the drug(s).

R

integer scalar, number of simulations. Default 1e4L.

object

ph2simon or ph2simon4 object

...

parameters of function ph2simon4(), most importantly type

r1, n1, r, n

(optional) integer scalars, see ph2simon4.

Value

Function simon_oc() returns simon_oc object.

Slots

maxResp

integer vector of same length as p, the frequencies of each regime having maximum response. The summation of maxResp is the number of simulation copies.

simon_maxResp

integer vector of same length as p, the frequencies of each regime having maximum response and success in Simon's two-stage trial.


[Package VisualizeSimon2Stage version 0.2.2 Index]