We have good discussions on hypothesis testing in large data: With large amount of data, even tinny difference between two samples can be detected, and we are almost certain to reject NULL hypothesis.
Effect size is one "fix", but I am interested in other fix, where, in addition to say they are different, but say how much the difference are.
I not know how to do it in R. Let us assume we are doing two sample T test, how can I say I want to test if the means are different by say certain amount say $0.1$ ?
The following code is test if two means are equal. How to modify it to test if two means are difference by $0.1$?
sample1=rnorm(1e5) sample2=rnorm(1e5) t.test(sample1,sample2) Welch Two Sample t-test data: sample1 and sample2 t = -0.5542, df = 2e+05, p-value = 0.5794 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -0.01124444 0.00628720 sample estimates: mean of x mean of y -0.0002658978 0.0022127222
I was trying to ask if the amount difference on mean of two samples within range of $-0.1$ to $0.1$, not exactly to equal $0.1$.
Reading Peter Flom 's comment, modifying T test will not meet my needs?