powered by
This function computes degrees of freedom for a 2-sample t-test from the standard deviations and sample sizes of the two samples.
tdf(sd1, sd2, n1, n2)
estimated degrees of freedom for 2-sample t-test
standard deviation of the sample 1
standard deviation of the sample 2
size of sample 1
size of sample 2
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