Appendix D: SAS PROC IML

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Section 13-4: Matrix Multiplication
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
“No one can be told what the matrix is…
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Pam Perlich Urban Planning 5/6020
Group members: M.Shozib, Hasnain Khan, M.Awais, Shahid Rafiq Asad ali.
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered.
Intro to Matrices Don’t be scared….
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
MATRICES MATRIX OPERATIONS. About Matrices  A matrix is a rectangular arrangement of numbers in rows and columns. Rows run horizontally and columns run.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Inverting Matrices Determinants and Matrix Multiplication.
Section 10.3 – The Inverse of a Matrix No Calculator.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Copyright © 2011 Pearson, Inc. 7.2 Matrix Algebra.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Unit 3: Matrices.
Lecture 7 Matrices CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
SAS Interactive Matrix Language Computing for Research I Spring 2012 Ramesh.
Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.
Operations with Matrices: Multiplication
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Find the determinate of both of the following matrices.
MATRICES Operations with Matrices Properties of Matrix Operations
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Matrix Algebra Basics Chapter 3 Section 5. Algebra.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
MTH108 Business Math I Lecture 20.
3.8 Matrices L Al-zaid Math1101.
Linear Algebraic Equations and Matrices
MATRICES.
12-1 Organizing Data Using Matrices
ECE 1304 Introduction to Electrical and Computer Engineering
Matrices Rules & Operations.
1.5 Matricies.
Matrix Operations.
Linear Algebraic Equations and Matrices
Matrix Operations.
Matrix Operations SpringSemester 2017.
WarmUp 2-3 on your calculator or on paper..
Warm-up a. Solve for k: 13 −5
MATRICES MATRIX OPERATIONS.
2. Matrix Algebra 2.1 Matrix Operations.
[ ] [ ] [ ] [ ] EXAMPLE 3 Scalar multiplication Simplify the product:
MATRICES MATRIX OPERATIONS.
Unit 3: Matrices
MATRICES MATRIX OPERATIONS.
( ) ( ) ( ) ( ) Matrices Order of matrices
Section 2.4 Matrices.
2.2 Introduction to Matrices
Section 3.3 – The Inverse of a Matrix
MATRICES Operations with Matrices Properties of Matrix Operations
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
3.8 Matrices L Al-zaid Math1101.
Presentation transcript:

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 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.

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 /

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.