Kathryn,

Your post is outstanding and easy to understand. I love it and I am really, but really brand new to SAS and I am learning it by myself with the help of various posts and excellent explanations like yours. However, I wonder if you could guide in the following situation.

Data: 16 subjects divided in 2 groups ('exper' and 'control') with the same 2 var ('rest' and 'work').

Proc needed: ttest for the 2 var ('rest' and 'work') in the 'exper' group only.

I used Proc MEANS to obtained the 5-statistics for each group, and have obtained this table:

-------------------------------------------------------------------------------------------------------
Group----variable----label----5-statistics values
control----rest---------rest-----
------------work--------work----
exper-----rest---------rest-----
------------work--------work----

I know that I can conduct the ttest manually by working out the statistics and obtaining the standard error of the mean, etc., etc.

However, I would like to create a subset 'name' control' and use the proc ttest for this subset only and obtain the ttest for the variables 'rest' and 'work'.

How can I do that?

Thank you for your help.

Mike