c. Create a flag that identifies whether members are eligible for the refund. Members are eligible if they worked out for at least 30 minutes a day for all 119 days.
That would be if the MINIMUM value for ALL of the variables is 30 minutes or more AND all of the values are not missing.
Which would look a lot like your AvgTime but with the MIN function instead of MEAN and "ge 30" if the values in the Timesession variables are minutes.
Flag = (min(of timesession1-timesession119) ge 30 AND nmiss(of timesession1-timesession119)=0 );
The missing needs to be considered because the MIN function will ignore missing values for returning the minimum.
SAS will return 1 for true and 0 for false for
... View more