English

Rick Wicklin 0
A SAS Christmas tree

A few colleagues and I were exchanging short snippets of SAS code that create Christmas trees and other holiday items by using the SAS DATA step to arrange ASCII characters. For example, the following DATA step (contributed by Udo Sglavo) creates a Christmas tree with ornaments and lights: data _null_;

Chris Hemedinger 0
What's the difference between 0 and -0?

My daughter's math lessons this year have included the concept of negative numbers (that is, numbers that are less than zero, not numbers that have a bad attitude). She has used number lines such as this one to help her while she completes her homework: Notice that in this number

Chris Hemedinger 0
Too many pies can be hard to digest

On his SAS and R blog, Ken K. recently posted an example of a visualization technique called "small multiples". In this exercise, Ken shows the programming technique for replicating a particular series of pie charts in R as well as in SAS. It's a useful exercise to learn from, but

Rick Wicklin 0
SAS tip: Put ODS statements inside procedures

The SAS Output Delivery System (ODS) enables you to manage and customize tables (and graphics!) that are created by SAS procedures. I like to use the ODS SELECT statement to display only part of the output of a SAS procedure. For example, the UNIVARIATE procedure produces five tables by default,

Data Visualization
Pratik Phadke 0
Calendar Heatmaps in GTL

Calendar Heatmaps are an interesting alternative view of time-series data. The measured value is displayed as color mapped cells in a calendar. Calendar Heatmaps can be easily created with SAS 9.3 using just the HEATMAPPARM, SERIESPLOT and BLOCKPLOT statements in GTL and some simple data manipulation. The example below shows

Data Visualization
Sanjay Matange 0
Adding a spark to your data

When viewing time series data, often we only want to see the trend in the data over time and we are not so concerned about the actual data values.  With multiple time series plots, forecasting software can find clusters to help us view series with similar trends. Recently I saw a graph showing the trend of unemployment

Analytics
Bill Coleman 0
What can asset management do for utilities?

Water and wastewater treatment plants are among the most complex facilities built and maintained by utility companies, whether public or private. Each facility contains thousands of pieces of equipment worth millions of dollars that must operate in concert for the many complex treatment processes to function effectively.  The consequences of these assets

Rick Wicklin 0
Recoding a character variable as numeric

The other day someone posted the following question to the SAS-L discussion list: Is there a SAS PROC out there that takes a multi-category discrete variable with character categories and converts it to a single numeric coded variable (not a set of dummy variables) with the character categories assigned as

1 284 285 286 287 288 326