Description Usage Arguments Value

View source: R/calculate_binom_baseline.R

Function to calculate the lower CI, upper CI, percentages and counts, and significance of difference from one or multiple baseline percentages, given supplied confidence level using

1 | ```
calculate_binom_baseline(data_df, baseline_female, confidence_level = 0.95)
``` |

`data_df, ` |
dataframe in output from |

`baseline_female, ` |
female baseline in percentage from |

`confidence_level, ` |
confidence level to use for significance calculation, default is 0.95 |

This function returns a dataframe with additional columns than the input one:

lower_CI = lower confidence level of confidence interval expressed as a percentage

upper_CI = upper confidence level of confidence interval expressed as a percentage

lower_CI_count = lower confidence level of confidence interval expressed as a count

upper_CI_count = upper confidence level of confidence interval expressed as a count

significance = flag indicating whether difference of female percentage with baseline percentage is significant for the row in consideration. It has values "significant" or "" if not.

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.