s-news
[Top] [All Lists]

Calculating Averages for several combinations

To: <s-news@lists.biostat.wustl.edu>
Subject: Calculating Averages for several combinations
From: "Bert Jacobs" <b.jacobs@pandora.be>
Date: Thu, 26 Jan 2006 13:24:40 +0100
In-reply-to: AAAAAOXvfE/tUWVMujI1J0cWacuk4yEA
Thread-index: AcYh4sv1rjJDB5pcS9qbDWpHggpYggAAurQAACMryIA=
Using Splus 6,2 for Windows.

Hello,

I have a dataframe with 4 categorical variables and 60 continuous variables.
Now I would like to calculate the averages of the 60 continuous variables
for all possible combinations of the 4 categorical variables (with resp.
13,3,58,23 levels).

Is this possible in one equation or do I have to use the aggregate function
16 times for every possible variable combination 

Any ideas?

Thx
Bert



<Prev in Thread] Current Thread [Next in Thread>