calculate_binom_baseline {GenderInfer} | R Documentation |
Calculate binomials and significance for multiple baselines.
Description
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
Usage
calculate_binom_baseline(data_df, baseline_female, confidence_level = 0.95)
Arguments
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 |
Value
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.