Mean.1Pop.Hypothesis: One Population Mean - Hypothesis Test

Description Usage Arguments Value

Description

Performs a hypothesis test with 100(1-alpha) percent confidence for the mean of a single population

Usage

1
2
Mean.1Pop.Hypothesis(xbar, mu, variance, n, popVarKnown = T,
  alternative = "two.sided", alpha = 0.05)

Arguments

xbar

the mean of the sample

mu

the hypothesized value of the population mean

variance

either the sample or population variance (the latter only if it is known)

n

the size of the sample

popVarKnown

boolean denoting whether the population variance is known. False by default.

alternative

string denoting the form of the alternative hypothesis Acceptable values are "smaller" (<), "greater" (>), and "one.sided" (=/=).

alpha

the significance level. Set to 0.05 by default.

Value

The test statistic, p-value, and conclusion of the hypothesis.


AleksandrHovhannisyan/StatisticalInferencesInR documentation built on May 26, 2019, 6:38 a.m.