Learn R Programming

rgr (version 1.1.15)

gx.t.test: t-test from Means, Standard Deviations and Sample Sizes

Description

Function to test hypothesis of equality of two means given the mean, standard deviation and size (N) of each population.

Usage

gx.t.test(xbar1, s1, n1, xbar2, s2, n2)

Arguments

xbar1

mean of population 1.

s1

standard deviation of population 1.

n1

size of population 1.

xbar2

mean of population 2.

s2

stabdard deviation of population 2.

n2

size of population 2.

Details

Function written to support QA/QC studies where data for sets of Control Reference Material analyses are to be compared, e.g., between two projects, or when comparing published statistics with those from a project.

The hypothesis, H0: mean1 = mean2, is tested at the 95% confidence level and the user informed whether the hypothesis is accepted or rejected. Additionally the difference, t-value, degrees of freedom, and p-value are displayed.

Examples

Run this code
# NOT RUN {
gx.t.test(22.3, 4.6, 25, 24.2, 3.8, 22)
gx.t.test(22.3, 4.6, 25, 26.2, 3.8, 22)
# }

Run the code above in your browser using DataLab