I have 2 independent data sets, and I know the following about each of them: mean, SD, and sample size. I calculated the t-statistic just fine
my.t.test<-function(mu1, mu2, sd1, sd2, n1,n2){
t=(mu1-mu2)/sqrt((sd1)^2/n1+(sd2)^2/n2)
return(t)
}
I know that the degrees of freedom...