Skip to contents

This function will plot the PDF of a difference between two Beta distributions

Usage

myPlotDiff(parY, parX, cut_B = 0.2, cut_W = 0.1, shade = 1, note = 1, ...)

Arguments

parY

non-negative parameters of the treatment Beta distribution.

parX

non-negative parameters of the historical control Beta distribution

cut_B

a meaningful improvement threshold

cut_W

a poor improvement throshold

shade

paint the two areas under the curve, default value=1 as "yes". other numbers stands for "no";

note

show values of the colored area, default value=1 as "yes". other numbers stands for "no"

...

additional arguments to plot

Value

nothing, only produces the plot as side effect

Examples

myPlotDiff(
  parY = c(5, 10),
  parX = c(2, 5),
  cut_B = 0.2, # a meaningful improvement threshold
  cut_W = 0.05, # a poor improvement threshold
  shade = 1, # paint the two areas under the curve, default: yes. other numbers stands for "no";
  note = 0
) # show values of the colored area, default: yes. other numbers stands for "no";