Learn R Programming

fastR2 (version 1.2.4)

tdf: Compute degrees of freedom for a 2-sample t-test

Description

This function computes degrees of freedom for a 2-sample t-test from the standard deviations and sample sizes of the two samples.

Usage

tdf(sd1, sd2, n1, n2)

Value

estimated degrees of freedom for 2-sample t-test

Arguments

sd1

standard deviation of the sample 1

sd2

standard deviation of the sample 2

n1

size of sample 1

n2

size of sample 2

Examples

Run this code
data(KidsFeet, package="mosaicData")
fs <- favstats( length ~ sex, data=KidsFeet ); fs
t.test( length ~ sex, data=KidsFeet )
tdf( fs[1,'sd'], fs[2,'sd'], fs[1,'n'], fs[2,'n'])

Run the code above in your browser using DataLab