one.sample.t.test: Gosset's one-sample t-test with summary statistics

View source: R/tests.R

one.sample.t.testR Documentation

Gosset's one-sample t-test with summary statistics

Description

Gosset's one-sample t-test for testing claims about a population mean.

Usage

one.sample.t.test(
  xbar,
  s,
  n,
  mu0 = 0,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95
)

Arguments

xbar

the sample mean.

s

the sample standard deviation.

n

the sample size.

mu0

the assumed population mean under the null hypothesis.

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.

conf.level

confidence level for the interval estimator


ddarmon/MUsaic documentation built on June 19, 2024, 6:43 p.m.