ftt: Export t test results to APA format

Description Usage Arguments Author(s) See Also Examples

View source: R/ftt.R

Description

A function to format a t test of Student according to the APA guidelines. The output can be directly used in a Knitr/Sweave document. The function can optionally export the related d of Cohen.

Usage

1
ftt(ttest, d = NULL)

Arguments

ttest

An t.test object.

d

A number representing the associated d of Cohen.

Author(s)

Guillaume T. Vallet gtvallet@gmail.com, University of de Montreal (Canada);

See Also

faov, fmsd

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Generate fake data of two groups to be compared
cond1 = rnorm(10, mean=555, sd=45)
cond2 = rnorm(10, mean=639, sd=33)

# Compute the t test
ttest = t.test(cond1, cond2, paired=F)

# Export the t test result
ftt(ttest)
           

Cogitos/statxp documentation built on March 22, 2021, 6:38 a.m.