R/pmf.R
pmf.Rdpmf determines probability mass functions of a design returned by
des_one_stage or des_two_stage, under given
response rate scenarios (see pi).
pmf( 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_pmf",
containing each of the input parameters along with a tibble in the slot
$pmf, which gives the determined probability mass functions.
# The default two-stage design des <- des_two_stage() # Its probability mass function under the uninteresting and interesting # scenarios pmf <- pmf(des) # The same probability mass functions, conditioning on the trial ending in # stage 2 pmf <- pmf(des, k = 2)