Displaying 1 result from an estimated 1 matches for "denom2".
Did you mean:
denom
2004 Oct 01
3
same test statistic for t-test with and without equal variance assumption
...<- length(x2)
m1 <- mean(x1) ; m2 <- mean(x2) ; num <- (m1 - m2)
v1 <- var(x1) ; v2 <- var(x2)
# t-test with UNequal variance
denom1 <- sqrt( v1/n1 + v2/n2 )
num / denom1 # gives 0.5989774
# t-test with equal variance
sp <- ( (n1-1)*v1 + (n2-1)*v2 )/(n1 + n2 - 2)
denom2 <- sp * sqrt( 1/n1 + 1/n2 )
num / denom2 # gives 0.5913777
I tested this using R-1.9.1 (21/06/2004) on Redhat Fedora Core 2 and
Windows 2000 Professional with the same results.
Any suggestions would be kindly appreciated.
Regards,
--
Adaikalavan Ramasamy ramasamy@cancer...