Matrices_and_Vectors_SAS_examples

Matrices_and_Vectors_SAS_examples - Options ls=74 ps= 500...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Options ls=74 ps= 500 nodate pageno=1; Title "Introduction to Matrices"; *ODS html ; Proc iml; Reset print; A = {2 5 4, 4 9 5, 8 7 9}; Aprime = A`; ApA = A`* A; A_inv= inv(A); G_inv=Ginv(A); Identity=A*A_inv; Trace_A= Trace(A); Det_A= Det(A); Rank_A= Rank(A); Real_Rank_A= round(trace(ginv(A)*A)); AA = Identity*A; AAA = A*Identity; run; *ODS html close; 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction to Matrices 1 A 3 rows 3 cols (numeric) 2 5 4 4 9 5 8 7 9 APRIME 3 rows 3 cols (numeric) 2 4 8 5 9 7 4 5 9 APA 3 rows 3 cols (numeric) 84 102 100 102 155 128 100 128 122 A_INV 3 rows 3 cols (numeric) -0.71875 0.265625 0.171875 -0.0625 0.21875 -0.09375 0.6875 -0.40625 0.03125 G_INV 3 rows 3 cols (numeric) -0.71875 0.265625 0.171875 -0.0625 0.21875 -0.09375 0.6875 -0.40625 0.03125 IDENTITY 3 rows 3 cols (numeric) 1 0 0 0 1 0 0 0 1 TRACE_A 1 row 1 col (numeric) 20 DET_A 1 row 1 col (numeric) -64 RANK_A 3 rows 3 cols (numeric) 1 4 2 3 9 5 7 6 8 2
Background image of page 2
REAL_RANK_A 1 row 1 col (numeric) 3 AA 3 rows 3 cols (numeric) 2 5 4 4 9 5 8 7 9 AAA 3 rows 3 cols (numeric) 2 5 4 4 9 5 8 7 9 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Title "Introduction to IML"; Proc IML; Reset print; ******Create a matrix***; A={ 9 7, 4 2}; B={ 5, 3}; ****Addition and multiplication of a scalar***; C= A + 5; D= B*2; DD= B#2; DDD=A*B; *****Matrix Multiplication***; DDDD= A#B;
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/26/2010 for the course CPSC 499 taught by Professor Staff during the Spring '08 term at University of Illinois, Urbana Champaign.

Page1 / 14

Matrices_and_Vectors_SAS_examples - Options ls=74 ps= 500...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online