conf_int: Between-Subjects Confidence Intervals

View source: R/calculations.R

conf_intR Documentation

Between-Subjects Confidence Intervals

Description

Calculates the deviation that is needed to construct confidence intervals for a vector of observations.

Usage

conf_int(x, level = 0.95, na.rm = TRUE)

conf.int(x, level = 0.95, na.rm = TRUE)

ci(x, level = 0.95, na.rm = TRUE)

Arguments

x

Numeric. A vector of observations from your dependent variable.

level

Numeric. Defines the width of the interval if confidence intervals are plotted. Defaults to 0.95 for 95% confidence intervals.

na.rm

Logical. Specifies if missing values should be removed.

Value

Returns a single numeric value, the deviation of the symmetric confidence bounds from the mean based on the t distribution.


papaja documentation built on Sept. 29, 2023, 9:07 a.m.