I am trying to compare two different versions of the same product. Since they are independent of each other, I decided that I should do an independent sample t-test. When I go to do a two-sample test on SAS OnDemand for Academics, the results don't make any sense. When I do a paired test however, it generates perfect results. Have I decided to run the wrong test or am I just missing something?
I have looked at your PDF file, and this requires more explanation, specifically which test is which, and which ones make perfect senses and so on.
Can you also show us the code you used?
Furthermore, since you state that your data is not paired, you should not do a paired t-test, it will be meaningless.
Show the code, please. This looks like the output from PROC UNIVARIATE and it looks like a BY group analysis in which each group has one or two observations.
The file is what happens when I run a two sample t-test. Code is below. I guess what is confusing me is that it doesn't show any graphs when I do two sample as opposed to the paired test, which does.
I suspect that the SF variable contains more than two levels. The SF variable should contain two values that indicate the product version. The UniDun variable contains the measurements. Your data should look like this example:
SF UniDun
1 1.23
1 3.21
1 4.23
1 2.14
...
2 4.53
2 3.43
2 3.61
2 3.87
From the PROC UNIVARIATE output, it looks like your data might look more like this:
SF UniDun
1 1.23
1 3.21
2 4.23
2 2.14
...
12 4.53
12 3.43
13 3.61
13 3.87
You can use PROC FREQ to produce the values of the SF variable:
proc freq data=WORK.IMPORT;
tables SF;
run;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.