R/opchar.R
opchar.Rd
opchar
determines the operating characteristics (analytically) of a
design returned by des_one_stage
or
des_two_stage
, under given response rate scenarios (see
pi
).
opchar( des = ph2rand::des_one_stage(), pi = des$opchar[, 1:2], k = 1:des$J, summary = FALSE )
des | An object of class |
---|---|
pi | A |
k | A |
summary | A |
A list
with additional class "ph2rand_opchar"
,
containing each of the input parameters along with a tibble in the slot
$opchar
, which gives the determined operating characteristics.
# The default two-stage design des <- des_two_stage() # Its operating characteristics under the uninteresting and interesting # scenarios opchar <- opchar(des) # The same operating characteristics, conditioning on the trial ending in # stage 2 opchar <- opchar(des, k = 2)