Description Usage Arguments Examples
This function will return a single data frame consisting of two sets of control limits, which can then be overlaid in a funnel plot. The incoming data frame (input) should have one observation per row. It must have a column labeled 'n' which represents the number of events (numerator) and a column labeled 'd' which represents the total (denominator). Other by variables are permitted (e.g. sex, or age).
1 2 |
input |
A data frame of your sample data, in the format outlined above. |
benchmark |
A number between 0 and 1 representing the benchmark (e.g. null) estimate for which confidence limits are calculated for. If not specified, the overall proportion of events is used. |
alpha |
A number between 0 and 1 representing the desired confidence limit (e.g. 0.95) |
alpha2 |
A number between 0 and 1 representing the desired confidence limit (e.g. 0.998) |
method |
Choose between approximate or exact binomial control limits. |
step |
Minor ticks between 1 and the maximum denominator size of the raw data for which the control limits are calculated for. Must be integer for method=exact. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.