Learn R Programming

BayesianHybridDesign (version 0.1.0)

plotDPP: Plot a DPP Object

Description

Plots the posterior distributions of the response rates for the control and experimental arms from a DPP object created by the DPP.analysis() function.

Usage

plotDPP(DPP)

Value

No return value, called for side effects.

Arguments

DPP

An object produced by the DPP.analysis() function.

Examples

Run this code
o <- DPP.analysis(Yt=39, nt=60, Yc=13, nc=30, Ych=90, nch=200, nche = 30,
                  a0c= 0.001, b0c= 0.001, a0t= 0.001, b0t= 0.001,
                  delta_threshold = 0.1, method = "Empirical Bayes",
                  theta = 0.5, eta = 1)

# Call the function using its defined name 'plotDPP'
plotDPP(DPP = o)

Run the code above in your browser using DataLab