Hi! I'm new to SAS, and I have a database with over 6000 measurements of arsenic in drinking water wells. Some wells were measured multiple times, and each measurement is a separate row. I want to change this so that there is a single row for each well, with new columns for the additional measurements, like "date2, arsenic2, depth2, address2..." Can anyone help me with the code? Eventually I want to randomly select 90% of the wells to make a training dataset to build a model predicting arsenic at unmeasured locations. The other 10% of wells will then be used as a validation dataset to see how well the model works. I was thinking of doing this using excel to assign a random number to each well once I get one row per well. If you've read this far, thanks very much!
... View more