Hello! I wish to conduct a ttest comparing means of a vairable between the two groups in the class variable, but it doesn't seem to be doing that.
Here is my code:
I don't think SURVEYMEANS compares the means of the two groups, just the same way as PROC MEANS doesn't compare the means of two groups. It produces a t-test to see if the mean is equal to zero.
I think to get the t-test comparing differences between two means, you would have to use the linear model version of the t-test to compare two means
proc surveyreg data=fus;
cluster group;
class period;
model interest=period;
run;
Of course, all of this is untested; if you want tested code, provide (a portion of) the actual data as SAS data step code.
I don't think SURVEYMEANS compares the means of the two groups, just the same way as PROC MEANS doesn't compare the means of two groups. It produces a t-test to see if the mean is equal to zero.
I think to get the t-test comparing differences between two means, you would have to use the linear model version of the t-test to compare two means
proc surveyreg data=fus;
cluster group;
class period;
model interest=period;
run;
Of course, all of this is untested; if you want tested code, provide (a portion of) the actual data as SAS data step code.
Thanks so much, this worked perfectly!
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: