Skip to contents

Calculate confidence intervals of mean or difference between means

Usage

# S3 method for default
meanCI(x, ...)

meanCI2(
  x,
  y,
  n,
  m,
  s,
  n1,
  n2,
  m1,
  m2,
  s1,
  s2,
  mu = 0,
  paired = FALSE,
  var.equal = FALSE,
  alpha = 0.05,
  digits = 2,
  alternative = "two.sided"
)

Arguments

x

A vector

...

Further arguments to be passed to meanCI2

y

A vector

n, n1, n2

integer sample(s) size

m, m1, m2

Numeric mean value of sample(s)

s, s1, s2

Numeric standard deviation of sample(s)

mu

numeric hypothesized true value of mean or mean difference

paired

logical If true, difference between paired sample calculated

var.equal

logical If true, pooled standard deviation is used

alpha

Numeric Confidence level

digits

integer indicating the number of decimal places

alternative

A character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".

Value

An object of class "meanCI" which is a list containing at least the following components:

data

A tibble containing raw data or a list of numeric vector

result

A data.frame containing of summary statistics

call

the matched call

attr(*,"measure")

character. One of c("mean","unpaired","paired")

Methods (by generic)

  • meanCI: Default S3 method