I have a question about t-tests. I am using the rnorm function in R (example below) to perform t-tests on the difference of two means. Traditionally, this works by telling R the sample sizes, means, and standard deviations, but a colleague wants me to plug in the standard error where you would normally put the standard deviation. Is there ever a statistical justification for this?
For reference, the code looks like this:
one <- c(rnorm(9710, mean = 156958.8, sd = 3679.691))
two <- c(rnorm(9710, mean = 141639, sd = 2975.4))
t.test(one, two, var.equal = FALSE)
My colleague wants me to put the standard error, instead of the standard deviation, where the code reads "sd = x". I can't find a case where this would be required, but my stats knowledge has some holes, and I want to ensure that I have a strong basis for questioning their reasoning.
Thank you for taking the time to look at my problem!