stats.t.test(n1 = NULL, n2 = NULL, m1 = NULL, m2 = NULL, s1 = NULL,
s2 = NULL, Ynm = "Y", Xnm = "X", X1nm = "Group1", X2nm = "Group2",
conf.level = 0.95, digits = 2, ...)
smd.t.test
function included in this package, which performs the independent-groups t-test from the data. In contrast, stats.t.test
performs the analysis from the six basic summary statistics: the sample size, sample mean and sample standard deviation for each group. Accordingly, there is no graphic output from this function as with smd.t.test
.This version of stats.t.test
assumes homogeneity of variance in the computation of the standard error of the mean difference. Also, only a two-sided test is provided. The null hypothesis is a population mean difference of 0.
smd.t.test
, t.test
.stats.t.test(n1=19, n2=15, m1=9.5, m2=8, s1=1.4, s2=1.5,
Ynm="Y", Xnm="X", X1nm="Group1", X2nm="Group2",
conf.level=0.95, digits=2)
Run the code above in your browser using DataLab