mean.t.test.onesample.simple: One Sample t Test for Mean

View source: R/mean.t.test.onesample.simple.R

mean.t.test.onesampleR Documentation

One Sample t Test for Mean

Description

Calculate one sample t test for mean.

Usage

## S3 method for class 't.test.onesample'
mean(
  x,
  null.hypothesis.mean = 0,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  finite.population.N = NA,
  na.rm = T
)

## S3 method for class 't.test.onesample.simple'
mean(
  sample.mean,
  sample.variance,
  sample.size,
  null.hypothesis.mean = 0,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  finite.population.N = NA
)

Arguments

x

Vector - sample values to be used for mean calculation.

null.hypothesis.mean

Scalar - null hypothesis mean value, sample.mean is tested against this value.

alternative

The alternative hypothesis to use for the test computation.

conf.level

The confidence level for this test, between 0 and 1.

finite.population.N

Scalar - the population size if finite population adjustment needs to be made.

na.rm

Logical - remove NA values prior to running calculation.

sample.mean

Scalar - sample mean to be tested.

sample.variance

Scalar - sample variance.

sample.size

Scalar - sample size.

Value

The results of the statistical test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.