Hi all, I am a SAS-novice, and working through the book of Andy Field and Jeremy Miles "Discovering statistics using SAS". I am encountering all kind of smaller hiccups doing the exercises in the book, what has to do with the SAS-program (and not with the statistics itself). What is the proper platform/community for my questions. I will give one example. One of the datafiles to be used for the exercises misses for some unknown reason a vairiable ID. I now want to create a variable (vector) ID with 50 records from 1 to 50, and to add that to the datafile. Of course I can add the data manually, but I want to learn to write some simple code. In R this is no problem for me. But is SAS I ran into troubles. I created a vector V as follows: PROC IML; V=T(1:50); Then aI tried to add that to the dataset DATA set2; SET set1; ID=V; RUN; Then in set2 two new empty variables have been created ID and V. Thanks for the help. Wil Tamis
... View more