I am working with a dataset as follows:
YearZero YearOne YearTwo YearThree
10 2.5 2.5 5
0 0 0.625 0.625
0 0 0 0.15625
0 2.5 3.125 5.78125
I'm looking to make a new table which requires manipulation of the dataset above for example I'd be looking to do a new dataset where V(R,C)=(Row,Column) +-(R,C)
V(2,2)= (2,4)-(3,2) i.e V(2,2)= 2.5 - 0.625
I can't seem to find where to work with observations individually in SaS, if there a way to do so on a large scale.
The result I'm looking for is eventually a new table/dataset where the results are derived from the original dataset
YearZero YearOne YearTwo YearThree
10 7.5 5 0
0 2.5 1.9 1.3
0 0 3.125 2.9
0 0 0 5.78
So I'm looking (for 2,3) 2.5-0.625=1.9 i.e in year two there was a newly issued 2.5 (represented by the 4th column) and then a maturing of 0.625 (represented by the 3rd column, 2nd row in the original dataset.
what I'm asking is why SAS/SQL makes it so difficult to work with multidimensional arrays for basic arithmetic.
The Maturity profile comes from a 3x3 matrix as displayed in the top right of the below in the data set - I have merged it in here.
The New issuance is a 1x3 - as merged in at the bottom line of the below matrix.
the initial volume (YearZero) is a 1x1 - an integer , as merged in for the top left.