Description Usage Arguments Value Examples

plot of range of posterior probability corresponding to a range of background rate

1 2 | ```
bdribs.sensitivity(Y = 5:9, pyr = 800, k = 1, tol = 1.2, bg.evnt = 18,
bg.pyr = 4000, bg.ci.coef = 0.9, bg.rng = NULL, add.mid = FALSE, ...)
``` |

`Y` |
range on number of AESI events for which sensitivity range to be drawn (default = 5:9) |

`pyr` |
total patient-year exposure where AESI events occurred (default =800) |

`k` |
allocation ratio (T:C) (default =1) |

`tol` |
clinically meaningful relative risk (default =1.2) |

`bg.evnt` |
background (historical) number of events in the control group (default =18) |

`bg.pyr` |
background (historical) patient-year exposure in the control group (default =4000) |

`bg.ci.coef` |
range of background rate estimate to be obtained from bg.ci.coef*100% CI (default =0.9); takes any value between 0.5 and 0.999. |

`bg.rng` |
range of background rate - if specified then bg.evnt, bg.pyr, and bg.ci.coef will be ignored (default =NULL) |

`add.mid` |
indicator variable to plot P(r>tol | Y, pyr) under inf.type=2 - requires related parameters to be supplied (default =F) |

`...` |
to supply remaining parameters of bdribs call (other than y, pyr, k, bg.events, bg.pyr) for bdribs call when supplied will override the default values |

returns a plot of P(r>tol | Y, pyr) over the range of background rate

1 2 3 4 5 6 7 8 | ```
## Sample calls
#run 1: The sensitivity plot
bdribs.sensitivity(Y=5:9,pyr=800,k=1, tol=1.2, bg.evnt=18, bg.pyr=4000,bg.ci.coef=0.90)
#run 2: The sensitivity plot
bdribs.sensitivity(Y=5:9,pyr=800,k=1, tol=1.2, bg.evnt=18, bg.pyr=4000,bg.ci.coef=0.90,
add.mid=TRUE)
#run 3: Using bg.rng parameter
bdribs.sensitivity(Y=5:9,pyr=800,k=1, tol=1.2, bg.rng = c(0.0030, 0.0045, 0.0065))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.