Blog Archives

Create a package in SAS/IML

May 4, 2016
By
Create a package in SAS/IML

In a previous post I showed how to download, install, and use packages in SAS/IML 14.1. SAS/IML packages incorporate source files, documentation, data sets, and sample programs into a ZIP file. The PACKAGE statement enables you to install, uninstall, and manage packages. You can load functions and data into your […] The post Create a package in SAS/IML appeared first on The DO Loop.

Read more »

How much do New Yorkers tip taxi drivers?

May 2, 2016
By
How much do New Yorkers tip taxi drivers?

When I read Robert Allison's article about the cost of a taxi ride in New York City, I was struck by the scatter plot (shown at right; click to enlarge) that plots the tip amount against the total bill for 12 million taxi rides. The graph clearly reveals diagonal and […] The post How much do New Yorkers tip taxi drivers? appeared first on The DO Loop.

Read more »

Packages: A new way to share SAS/IML programs

April 27, 2016
By
Packages: A new way to share SAS/IML programs

My previous post highlighted presentations at SAS Global Forum 2016 that heavily used SAS/IML software. Several of the authors clearly want to share their work with the wider SAS analytical community. They include their SAS/IML program in an appendix or mention a web site or email address from which the […] The post Packages: A new way to share SAS/IML programs appeared first on The DO Loop.

Read more »

Matrix computations at SAS Global Forum 2016

April 25, 2016
By
Matrix computations at SAS Global Forum 2016

Last week I attended SAS Global Forum 2016 in Las Vegas. I and more than 5,000 other attendees discussed and shared tips about data analysis and statistics. Naturally, I attended many presentations that featured using SAS/IML software to implement advanced analytical algorithms. Several speakers showed impressive mastery of SAS/IML programming […] The post Matrix computations at SAS Global Forum 2016 appeared first on The DO Loop.

Read more »

Visualize missing data in SAS

April 20, 2016
By
Visualize missing data in SAS

You can visualize missing data. It sounds like an oxymoron, but it is true. How can you draw graphs of something that is missing? In a previous article, I showed how you can use PROC MI in SAS/STAT software to create a table that shows patterns of missing data in […] The post Visualize missing data in SAS appeared first on The DO Loop.

Read more »

Examine patterns of missing data in SAS

April 18, 2016
By
Examine patterns of missing data in SAS

Missing data can be informative. Sometimes missing values in one variable are related to missing values in another variable. Other times missing values in one variable are independent of missing values in other variables. As part of the exploratory phase of data analysis, you should investigate whether there are patterns […] The post Examine patterns of missing data in SAS appeared first on The DO Loop.

Read more »

Head-tail versus head-head: A counterintuitive property of coin tosses

April 13, 2016
By
Head-tail versus head-head: A counterintuitive property of coin tosses

I saw an interesting mathematical result in Wired magazine. The original article was about mathematical research into prime numbers, but the article included the following tantalizing fact: If Alice tosses a [fair] coin until she sees a head followed by a tail, and Bob tosses a coin until he sees […] The post Head-tail versus head-head: A counterintuitive property of coin tosses appeared first on The DO Loop.

Read more »

Set attributes of markers in PROC SGPLOT by using ODS style elements

April 11, 2016
By
Set attributes of markers in PROC SGPLOT by using ODS style elements

The SG procedures in SAS use aesthetically pleasing default colors, shapes, and styles, but sometimes it is necessary to override the default attributes. The MARKERATTRS= option enables you to override the default colors, symbols, and sizes of markers in scatter plots and other graphs. Similarly, the LINEATTRS= option enables you […] The post Set attributes of markers in PROC SGPLOT by using ODS style elements appeared first on The DO…

Read more »

Generate points uniformly inside a d-dimensional ball

April 6, 2016
By
Generate points uniformly inside a d-dimensional ball

Last week I showed how to generate random points uniformly inside a 2-d circular region. That article showed that the distance of a point to the circle's center cannot be distributed uniformly. Instead, you should use the square root of a uniform variate to generate 2-D distances to the origin. […] The post Generate points uniformly inside a d-dimensional ball appeared first on The DO Loop.

Read more »

The WHERE clause in SAS/IML

April 4, 2016
By
The WHERE clause in SAS/IML

In SAS procedures, the WHERE clause is a useful way to filter observations so that the procedure receives only a subset of the data to analyze. The IML procedure supports the WHERE clause in two separate statements. On the USE statement, the WHERE clause acts as a global filter. The […] The post The WHERE clause in SAS/IML appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe