SAS

Blogs on the SAS software

RStudio in the cloud with Amazon Lightsail and docker

December 1, 2016
By
RStudio in the cloud with Amazon Lightsail and docker

About two years ago we published a quick and easy guide to setting up your own RStudio server in the cloud using the Docker service and Digital Ocean. The process is incredibly easy-- about the only cumbersome part is retyping a random password. Toda...

Read more »

Append data to add markers to SAS graphs

November 30, 2016
By
Append data to add markers to SAS graphs

Do you want to create customized SAS graphs by using PROC SGPLOT and the other ODS graphics procedures? An essential skill that you need to learn is how to merge, join, append, and concatenate SAS data sets that come from different sources. The SAS statistical graphics procedures (SG procedures) enable […] The post Append data to add markers to SAS graphs appeared first on The DO Loop.

Read more »

Goodness-of-fit tests: A cautionary tale for large and small samples

November 28, 2016
By
Goodness-of-fit tests: A cautionary tale for large and small samples

In the classic textbook by Johnson and Wichern (Applied Multivariate Statistical Analysis, Third Edition, 1992, p. 164), it says: All measures of goodness-of-fit suffer the same serious drawback. When the sample size is small, only the most aberrant behaviors will be identified as lack of fit. On the other hand, […] The post Goodness-of-fit tests: A cautionary tale for large and small samples appeared first on The DO Loop.

Read more »

Sampling variation in small random samples

November 23, 2016
By
Sampling variation in small random samples

Somewhere in my past I encountered a panel of histograms for small random samples of normal data. I can't remember the source, but it might have been from John Tukey or William Cleveland. The point of the panel was to emphasize that (because of sampling variation) a small random sample […] The post Sampling variation in small random samples appeared first on The DO Loop.

Read more »

Highlight forecast regions in graphs

November 21, 2016
By
Highlight forecast regions in graphs

A SAS customer asked how to use background colors and a dashed line to emphasize the forecast region for a graph that shows a time series model. The task requires the following steps: Use the ATTRPRIORITY=NONE option on the ODS GRAPHICS statement to make sure that the current ODS style […] The post Highlight forecast regions in graphs appeared first on The DO Loop.

Read more »

Need to log-transform a distribution? There’s a SAS function for that!

November 16, 2016
By
Need to log-transform a distribution? There’s a SAS function for that!

At a conference last week, a presenter showed SAS statements that compute the logarithm of a probability density function (PDF). The log-PDF is a a common computation because it occurs when maximizing the log-likelihood function. The presenter computed the expression in SAS by using an expression that looked like y […] The post Need to log-transform a distribution? There's a SAS function for that! appeared first on The DO Loop.

Read more »

Visualize the ages of US presidents

November 14, 2016
By
Visualize the ages of US presidents

Who was the oldest person elected president of the United States? How about the youngest? Who was the oldest when he left office? Let's look at some data. Wikipedia has a page that presents a table of the presidents of the US by age. It lists the dates for which […] The post Visualize the ages of US presidents appeared first on The DO Loop.

Read more »

One informat to rule them all: Read any date into SAS

November 11, 2016
By
One informat to rule them all: Read any date into SAS

If you obtain data from web sites, social media, or other unstandardized data sources, you might not know the form of dates in the data. For example, the US Independence Day might be represented as "04JUL1776", "07/04/1776", "Jul 4, 1776", or "July 4, 1776." Fortunately, the ANYDTDTE informat makes it […] The post One informat to rule them all: Read any date into SAS appeared first on The DO Loop.

Read more »

Visualize a torus in SAS

November 9, 2016
By
Visualize a torus in SAS

This article uses graphical techniques to visualize one of my favorite geometric objects: the surface of a three-dimensional torus. Along the way, this article demonstrates techniques that are useful for visualizing more mundane 3-D point clouds that arise in statistical data analysis. Define points on a torus A torus is […] The post Visualize a torus in SAS appeared first on The DO Loop.

Read more »

Rotation matrices and 3-D data

November 7, 2016
By
Rotation matrices and 3-D data

Rotation matrices are used in computer graphics and in statistical analyses. A rotation matrix is especially easy to implement in a matrix language such as the SAS Interactive Matrix Language (SAS/IML). This article shows how to implement three-dimensional rotation matrices and use them to rotate a 3-D point cloud. Define […] The post Rotation matrices and 3-D data appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe