Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Robert G. Garrett

Examples

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)

rgr

Applied Geochemistry EDA

v1.1.15
GPL-2
Authors
Robert G. Garrett
Initial release
2018-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.