Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Viewing all articles
Browse latest Browse all 310

join several tables while computing an average of variable´values

$
0
0
Hey all,
could you please help me to solve the following problem:

I have several tables (say, T is a number of tables) with data of such a view:

Y X1 X2 X3 ...Xi

with different (numeric) values for each X and the same (character) value for Y.

E.g. Y X1 X2 X3 ... Xi
product 1 5 6 2 ... 8 for each t=1,...,T
product 2 ...
...
product k 2 8 5 ... 7

And I want to get one table

Y avg_X1 avg_X2 avg_X3 ... avg_Xi
product1 * * * ... *
product 2 ...
...

where * means an average of X1, X2,... over all t=1,...T

How can one do it in SAS?

Many thanks in advance.

Viewing all articles
Browse latest Browse all 310

Latest Images

Trending Articles



Latest Images