Description Usage Arguments Value See Also Examples
pmf
determines probability mass functions of a design returned by
des_one_stage
or des_two_stage
, under given
response rate scenarios (see pi
).
1 2 3 4 5 6 |
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.
des_one_stage
, des_two_stage
,
plot.ph2rand_terminal
.
1 2 3 4 5 6 7 8 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.