ci.mean.default: Compute mean values with confidence intervals

View source: R/ci.mean.default.R

ci.mean.defaultR Documentation

Compute mean values with confidence intervals

Description

Compute mean values with confidence intervals

Usage

## Default S3 method:
ci.mean(
  x,
  alpha = 0.05,
  normal = TRUE,
  na.rm = TRUE,
  statistic = "arithmetic",
  ...
)

Arguments

x

numeric vector

alpha

level of significance

normal

If TRUE use quantile of t-distribution else use normal approximation and quantile of normal approximation. Do you think this is confusing?

na.rm

If TRUE remove missing values from x.

statistic

Decide which mean to compute: either "arithmetic" or "geometric"

...

not used

Details

Normal approximation

Value

a list with mean values and confidence limits

Author(s)

Thomas Gerds


Publish documentation built on Jan. 18, 2023, 1:08 a.m.