get_ci: Get Confidence Intervals

Description Usage Arguments Value Examples

Description

Get Confidence Intervals

Usage

1
2
get_ci(data, column = NULL, confidence_level = 0.95,
  point_estimate = NULL, type = "percentile")

Arguments

data

A dataframe/tibble with the calculated statistics in a column named 'stat'

column

A string that specifies the column name in the dataframe that will be used for calculations. Must be specified.

confidence_level

The confidence level specified as a float between 0 and 1 inclusive. Default is set at 0.95

point_estimate

A value representing a calculated statistic of the original sample. Will be set to "NULL" if method is percentile.

type

A string specifying the type of method to be used to calculate the confidence intervals. Options are "standarderror" or "percentile". As of this version only percentile has been implemented. Default is "percentile".

Value

1 x 4 dataframe/tibble with numerical values representing the Confidence Level, Lower Bound, Upper Bound, and Point Estimate

Examples

1
2
3
df_t <- data.frame(runif(20))
names(df_t) <- c("randoms")
get_ci(data=df_t,column="randoms",confidence_level=0.9)

UBC-MDS/rfer documentation built on May 14, 2019, 11:02 p.m.