how to write the code for sample mean vector for 3*3 matrix in SAS iml the equation for it is attached in the document
the matrix is {1 2 -1,
2 4 4,
1 5 -2};
MeanM = mean(myMatrix);
If you want it transposed, use the T()function.
IML functions are listed here
https://documentation.sas.com/?docsetId=imlug&docsetTarget=imlug_langref_sect253.htm&docsetVersion=1...
@Mustafa86 wrote:
how to write the code for sample mean vector for 3*3 matrix in SAS iml the equation for it is attached in the document
the matrix is {1 2 -1,
2 4 4,
1 5 -2};
Post it at IML forum @Rick_SAS is there.
proc iml;
x = {1 2 -1,
2 4 4,
1 5 -2};
colMean = mean(x); /* means of each column */
print colMean;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.