Hello.
round(Z[,+]+ y - t(Z[+,]+v+m),.1)
I am not familiar with SAS, what [,+], and [+,] will do on Z matrix and what is their difference.
Thank you
Those are subscript reduction operators. They collapse the dimensionality of your matrix and the + tells SAS to do this by summing.
If you have a matrix Z = {1 2 3, 4 5 6, 7 8 9} then Z[+,] = {(1+4+8) (2+5+8) (3+6+9)} = {12 15 18}, which is a rowvector. Z[,+] = {1+2+3,4+5+6,7+8+9} = {6,15,24}, which is a columnvector.
See http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/viewer.htm#workmatrix_sect14.ht... for more info.
Thank you very much.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.