confidence_interval: A Confidence Interval Function

Description Usage Arguments Examples

View source: R/confidence_interval.R

Description

This function creates a new column with the desired confidence interval bound. Names the new column ci_bound.

Usage

1
2
3
4
5
6
7
confidence_interval(
  df,
  metric_column = "metric",
  denom_column = "n_count",
  interval = 95,
  bound = "upper"
)

Arguments

df

Dataframe. Used first to be friendly to the %>% operator.

metric_column

The column name desired for confidence interval. Defaults to metric

denom_column

Column name of the denominator used. Defaults to n_count

interval

The percent confidence for the interval. Defaults to 95.

bound

The side of the confidence interval. Defaults to upper. Choices are upper or lower.

Examples

1
2
3
4
## Not run: 
confidence_interval()

## End(Not run)

amarsee/andrewacct documentation built on Feb. 19, 2020, 4:28 a.m.