mtest: Independent two groups t-test similar to PROC TTEST with...

View source: R/mtest.R

mtestR Documentation

Independent two groups t-test similar to PROC TTEST with summarized input

Description

This is comparable to SAS PROC TTEST except using summarized input (sufficient statistics).

Usage

  mtest(m1, s1, n1, m0, s0, n0, conf.level=0.95)

Arguments

m1

mean of the first (test, active, experimental) group

s1

sample standard deviation of the first group

n1

sample size of the first group

m0

mean of the second (reference, control, placebo) group

s0

sample standard deviation of the second group

n0

sample size of the second group

conf.level

confidence level

Details

This uses summarized input. This also produces confidence intervals of means and variances by group.

Value

The output format is comparable to SAS PROC TTEST.

Author(s)

Kyun-Seop Bae k@acr.kr

See Also

TTEST, tmtest, ztest

Examples

  mtest(5.4, 10.5, 3529, 5.1, 8.9, 5190) # NEJM 388;15 p1386

sasLM documentation built on Nov. 19, 2023, 5:12 p.m.