TITLE(ttest @@ One-Sample t-Test)
USAGE(
ttest(x, mu.zero, print.out=true, conf.level=95)
)
ARGUMENTS(
ARG(x @@ vector containing the data.)
ARG(mu.zero @@ hypothetical value for the mean.)
ARG(print.out @@ if LANG(false), printing is supressed.)
ARG(conf.level @@ confidence level for the confidence interval,
expressed as a percentage.)
)
DESCRIPTION(
LANG(ttest) calculates a confidence interval for the mean using
the data in LANG(x), and if the argument LANG(mu.zero) is present,
performs one-sample t-test of hypothesis LANG(mu=mu.zero).
)
VALUES(
A list having elements: @@
ARG(mx @@ the mean of the data.)
ARG(stddev @@ the standard deviation of the data.)
ARG(stderr @@ the standard errorof the mean.)
ARG(tstat @@ the value of the test statistic
(if argument LANG(mu.zero) is present).)
ARG(df @@ the degrees of freedom
(if argument LANG(mu.zero) is present).)
ARG(pval @@ the p-value (if argument LANG(mu.zero) is present).)
ARG(conf.int @@ a 2-element vector containing the endpoints of
the confidence interval.)
)
