I'd like to find out if there is a statistical test that I could use to determine if a mean difference is significantly greater than another mean difference.
To determine if one mean is different from another mean, I would use a t-test, but that would not apply here because there are not actual distributions; instead, there are differences.
Below is a replicable example in R to help explain.
x1 <- c(1,1,1,1,0,0,0,0,1,1,1,1,1)
x2 <- c(1,1,1,1,0,0,0,0,0,0,0,0,0)
x1_mean_diff <- mean(x1) - mean(x2)
x1_mean_diff #sig different with a t test
y1 <- c(1,1,1,1,0,0,0,0,1,1,1,1,1)
y2 <- c(1,1,1,1,0,0,0,0,0,1,1,0,0)
y1_mean_diff <- mean(y1) - mean(y2)
y1_mean_diff #NOT sig different with a t test
Basically, I'd like to see if x1_mean_diff is significantly greater than y1_mean_diff. Is there a way to do this?
Please let me know if I'm being unclear. Thanks!
x1 - x2
is different from that ofy1 - y2
? $\endgroup$x1
andx2
paired (andy1
andy2
also)? You don't mention it but from the pattern of your sample data it seems likely. You would use a different test if they are paired than if they aren't. $\endgroup$