|
On Sun, 14 Dec 2008 11:27:38 -0600, Joe Matise <snoopy369@GMAIL.COM> wrote:
>I think the way I would do it would be to use the class statement to get
>each group's frequency into a dataset, and then use PROC MEANS on that
>dataset.
>
>-Joe
Or use an inline view in SQL:
proc sql;
select mean(temp) as mean_age
from (select mean(age) as temp
from sashelp.class
group by sex);
quit;
>On Sun, Dec 14, 2008 at 10:07 AM, avi <aviben@bezeqint.net.il> wrote:
>
>> Hello,
>>
>> I have a Proc tabulate calculating the mean for a variable across all
>> the dataset;
>>
>> Is there a way to directly (weight?) instruct that each group (a
>> certain parameter in the dataset) will contribute one average so that
>> the final result will be an average of all the groups averages?
>>
>> Thanks
>> Avi
>>
|