SlideServe
Menu
Preferences
© SlideServe · v2026

Appendix D: SAS PROC IML

tarika avatar
4 slides · 294 Views · Aug 11, 2014

Appendix D: SAS PROC IML. Matrix Language with Interface to all SAS capacities and functionality Use it as a calculator Use it to write your own programs Full Documentation at http://support.sas.com/onlinedoc/913/docMainpage.jsp. PROC IML Overview. Invoke SAS from your machine, and type in

Appendix D: SAS PROC IML - slide 1
01 / 4Appendix D: SAS PROC IML
1 / 17

Download Presentation

Appendix D: SAS PROC IML
An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

More Related Content

Presentation Transcript
  1. Appendix D: SAS PROC IML • Matrix Language with Interface to all SAS capacities and functionality • Use it as a calculator • Use it to write your own programs • Full Documentation at http://support.sas.com/onlinedoc/913/docMainpage.jsp

  2. PROC IML Overview Invoke SAS from your machine, and type in proc iml ; Then click on the Run button. You are now ready to run the SAS matrix language. To input the 4 by 2 matrix X, enter X = { 1 2, 3 4, 5 6, 7 9 } ; Using curly brackets with space to delimit columns and a comma to delimit rows.

  3. PROC IML Operators Transpose ` (key above the ~ on US English keyboards) Addition + Subtraction - Matrix Multiply * Scalar Multiplication * Inverse of matrixINV(matrix) Diagonal of matrixDIAG(matrix) Square Root of elements SQRT(matrix) Elementwise Division /

  4. PROC IML Matrix Subsets Subscript [row(s), col(s) ] Pick off jth col of A A[,j] Sum across columns A[,+] Subset A A[{1 3 2}, {1}] The last example takes rows 1, 3 and 2 and column 1 from A.