Draws from the posterior of the treatment sequence response probabilities.
PosteriorTrtSeqProb(niter, dat, design = "design-1")
the number of posterior draws.
a data frame (see Details).
an indicator of which SMART design, design-1 or general.
dat should contain the following columns:
y, the end of study binary response indicator
a1, the stage-1 treatment assignment indicator
s, the end of stage-1 binary response indicator
Additionally, for design-1 it should contain a2, the stage-2 treatment assignment indicator
For the general design, it should contain
a2r, stage-2 treatment assignment for responders to stage-1 treatment.
a2nr, stage-2 treatment assignment for non-responders to stage-1 treatment.
Posterior draws of the probability of response at the end of the study for each embedded treatment sequence and the posterior draws of the probability of response at the end of stage-1 for each stage-1 treatment.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.