writeup.htest: Report t-test in APA style

Description Usage Arguments One Sample Two Sample Independent One Sample Paired

View source: R/ttest.R

Description

Report mean, st. dev., t, df, p.

Usage

1
2
## S3 method for class 'htest'
writeup(x)

Arguments

x

Object of class htest, see t.test

One Sample

The difference between [mu-value] and the mean of [x] (M=[mean(x)], SD=[sd(x)]) was [not] significant at alpha < [threshold] as revealed by One Sample t-test, two.sided: (t=[r], df=[df], p=[p]).

Two Sample Independent

The difference in means of [x] (M=[mean(x)], SD=[sd(x)]) and [y] (M=[mean(y)], SD=[sd(y)]) was significant at alpha < [threshold] as revealed by Welch Two Sample t-test, two.sided: (t=[r], df=[df], p=[p]).

One Sample Paired

The difference in means of [x] (M=[mean(x)], SD=[sd(x)]) was not significant at alpha < [threshold] as revealed by Paired t-test, two.sided: (t=[r], df=[df], p=[p]).


jchrom/aparep documentation built on May 18, 2019, 10:22 p.m.