Next: tval() Up: MacAnova Help File Previous: tinterval()   Contents

ttest()

Usage:
ttest(x[,y],(upper:T or lower:T), null:val [pooled:T|F])



Keywords: probabilities, descriptive statistics, comparisons
ttest() performs a one- or two-sample t-test, depending on whether
one or two variables are given as arguments.  By default there is
a two-tailed alternative, but you may choose one-sided alternatives
by using one of twotail:T, lowertail:T, or uppertail:T.
You specify the null value via null:value.  For two-sample tests,
you may choose to pool variances or not pool via pooled:T or pooled:F.

The output is a vector containing the statistic, the degrees of
freedom, and the p-value.


Gary Oehlert 2006-01-30