tdf {fastR2}R Documentation

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)

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

Value

estimated degrees of freedom for 2-sample t-test

Examples

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'])


[Package fastR2 version 1.2.4 Index]