t_summary: t test summary performs a t-test comparing the data from two...

Description Usage Arguments Value Author(s)

View source: R/stats.R

Description

t test summary performs a t-test comparing the data from two specified groups, calculates Cohen's d as a measure of effect size, and returns the results in format suitable for including in a matrix, data frame or table

Usage

1

Arguments

pair

A vector of length two specifying which groups should be compared.

formula

A formula identifying the columns holding the dependent and independent variables in the data frame/matrix.

data

A data frame or matrix containing the variables in the formula.

...

Other arguments passed to the t.test function

Value

A named numeric vector, with an element for the Student's t static, the degrees of freedom used for the t.test, the upper and lower bounds of the confidence interval, Cohen's, and the p value.

Author(s)

Will Hopper


wjhopper/whoppeR documentation built on May 4, 2019, 7:33 a.m.