Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
400 Statistical Programming in SAS
c1 = shape(1,3,1)
c3 = T({1 1 1})
c4 = T({[3] 1})
Vector c1 uses the shape function to define a 3×1 vector of value 1. Vector c3 defines
a 1×3 vector of value 1, and then transposes it with the SAS/IML function T. Vector c4
uses the repetition factor [3] for the value 1 to define a 1×3 vector that is then
transposed. There is an order in which matrix operations are evaluated, and parentheses
can help avoid confusion in coding.
11.4 Importing a Data Set into SAS/IML and Exporting
Matrices from SAS/IML to a Data Set
Up to now, you have entered matrices directly in PROC IML. You can imagine that it
would ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047