t_test2: 2-sample t-test

Description Usage Arguments Value

View source: R/ggTTestBetween.R

Description

Function which performs a 2-sample t-test using sample statistics (mean, sd, n) instead of a lists of observations. Not recommended for use outside gg_ttest_between().

Usage

1
t_test2(mean1, mean2, sd1, sd2, n1, n2, m0 = 0, equal.variance = TRUE)

Arguments

mean1

Mean for sample 1

mean2

Mean for sample 2

sd1

Standard deviation for sample 1

sd2

Standard deviation for sample 2

n1

Number of replicates for sample 1

n2

Number of replicated for sample 2

m0

Difference in means to test for. Default is 0.

equal.variance

Optional – Boolean for whether variances are equal. TRUE results in a student's t-test. FALSE results in a Welch test. Defaults to TRUE.

Value

Named list containing "Difference of means", "Std Error", "t", "df", and "p-value"


azzoam/ggBrackets documentation built on June 4, 2017, 12:09 a.m.