z.test.onesample.simple: One Sample Z Test for Mean

View source: R/z.test.onesample.simple.R

z.test.onesampleR Documentation

One Sample Z Test for Mean

Description

Calculate one sample z test for mean.

Usage

z.test.onesample(
  x,
  known.population.variance,
  null.hypothesis.mean,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  finite.population.N = NA
)

z.test.onesample.simple(
  sample.mean,
  known.population.variance = 1,
  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.

known.population.variance

Scalar - population variance.

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.

sample.mean

Scalar - sample mean to be tested.

sample.size

Scalar - sample size.

Value

The results of the statistical test.


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