I am new to SAS but familiar with R, MATLAB and Stata.
One thing I haven't been able to find yet while researching is the ability to work with individual observations throughout the data set. Assume this dataset is what I'm working with each step of the way:
Stock Volume1 Volume2 Volume3
Apple 200 100 101
Amazon 150 1000 1020
Facebook 135 80 85
Google 80 75 80
I'll give some examples of what I'm looking to do.
Taking the mean of segment 2 and 3's volume, such that I output a table:
Volume (Avg) 142.5
Moreover, I'd be looking to take the average of a few columns within those segments e.g.
Stock Volume1 Volume2 Volume3 Volume Average Apple 200 100 101 133.67 Amazon 150 1000 1020 723.33 428.50 Facebook 135 80 85 100 Google 80 75 80 78.33 89.165 258.8325
Generally, looking for the syntax that'll allow me to work within the dataset for operators like mean, sum, create tables and any kind of data manipulation.