Appendix D: SAS PROC IML - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Appendix D: SAS PROC IML

Description:

Use it to write your own programs ... Using curly brackets with space to delimit columns and a comma to delimit rows. Slide D.3 ... – PowerPoint PPT presentation

Number of Views:162
Avg rating:3.0/5.0
Slides: 5
Provided by: charlesf1
Category:
Tags: iml | proc | sas | appendix | delimit

less

Transcript and Presenter's Notes

Title: Appendix D: SAS PROC IML


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/onlin
    edoc/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 matrix INV(matrix)
  • Diagonal of matrix DIAG(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 A1 3 2, 1
  • The last example takes rows 1, 3 and 2 and column
    1 from A.
Write a Comment
User Comments (0)
About PowerShow.com