Hi everyone, I'm trying to run a paired t-test Using only one variable, but two groups.For example, I'm specifically looking at whether marital status changed (Logically it would not have) pre and post the implementation of the ACA using survey data.
I know that paired t-tests are run using:
ttest pre==post
and I know that t-tests using groups would be run using:
ttest marital, by (ACA)
However, it seems that the second line of code is a two-sample t-test and not a paired one. Even using the GUI, there doesn't seem to be a way to run a paired t-test using groups as the "pre and post" category.
I attached a screenshot of my output when I use the grouping command, which is not paired.
Thanks!

I know that paired t-tests are run using:
ttest pre==post
and I know that t-tests using groups would be run using:
ttest marital, by (ACA)
However, it seems that the second line of code is a two-sample t-test and not a paired one. Even using the GUI, there doesn't seem to be a way to run a paired t-test using groups as the "pre and post" category.
I attached a screenshot of my output when I use the grouping command, which is not paired.
Thanks!
Comment