Mean.2Pop.Hypothesis: Two Population Means - Hypothesis Test

Description Usage Arguments Value

Description

Performs a hypothesis test with 100(1-alpha) percent confidence for the difference in the means of two populations

Usage

1
2
3
Mean.2Pop.Hypothesis(xbar1, xbar2, n1, n2, var1, var2,
  differenceInPopulationMeans = 0, popVarKnown = F,
  alternative = "two.sided", equal = "F", alpha = 0.05)

Arguments

xbar1

the sample mean of population 1

xbar2

the sample mean of population 2

n1

the size of the sample from population 1

n2

the size of the sample from population 2

var1

the sample or population variance of population 1 (the latter only if it is known).

var2

the sample or population variance of population 2 (the latter only if it is known).

differenceInPopulationMeans

the hypothesized difference between the population means. Set to 0 by default.

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" (=/=).

equal

boolean denoting whether the population variances are equal. False by default. Used only in the case when the population variances are unknown.

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.