Skip to contents

Get Confidence Intervals Within Groups

Usage

get_confidence_intervals_within_groups(data, x, y, conf_level = 0.95)

Arguments

data

data

x

var 1

y

var 2

conf_level

Confidence level

Value

results

Examples

A <- c(1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1)
B <- c(0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0)
data <- data.frame(A, B)
get_confidence_intervals_within_groups(data, A, B)
#>       lower_ci  upper_ci
#> 1 0.0005694156 0.5904217