SAS proc SQL and arrays

前端 未结 2 1952
耶瑟儿~
耶瑟儿~ 2021-01-23 18:54

This is a newbie SAS question. I have a dataset with numerical variables v1-v120, V and a categorical variable Z(with say three possible v

2条回答
  •  攒了一身酷
    2021-01-23 19:37

    It's easy to do this with proc means. Using the t1 data set from Louisa Grey's answer:

    proc means data=t1 nway noprint;
      class z;
      var v1-v3;
      output out=t3 mean=w1-w3;
    run;
    

    This creates an table of results that match the SQL results.

提交回复
热议问题