Posts Tagged ‘ howto ’

Practical MD5 in SAS

December 4, 2013
By

This guide introduces MD5 and hash functions in general, lists common uses for hash functions, gives advise on how to best use MD5 in SAS, and covers common issues.
Read more »

Tags: , , , ,
Posted in SAS | Comments Off

Calculate RMSE and MAE in R and SAS

July 12, 2013
By

Here is code to calculate RMSE and MAE in R and SAS. RMSE (root mean squared error), also called RMSD (root mean squared deviation), and MAE (mean absolute error) are both used to evaluate models. MAE gives equal weight to all errors, while RMSE gives...
Read more »

Tags: , , , , , ,
Posted in SAS | Comments Off

Data about each month (SAS)

February 27, 2013
By

A SAS code to generate information about each month such as the number of days in the month, week days, hours, work hours, etc. using intck and intnx function. It's also a good example of using a DATA step to generate a data set without an input data ...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

Dummy coding in SAS

February 11, 2013
By

Here is a macro to generate binary features (also called dummy coding) from a nominal variable (also called a categorical variable, such as eye color). The automation saves time and avoids mistakes when there are many possible values to a category or ...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

Easy sortable HTML tables in SAS ODS

January 18, 2013
By

Today Charlie Huang posted a SAS HTML table sorting demo, but without automation. Here is a fully automated implementation in SAS. The developer does not need to manually edit the HTML, and the user simply clicks any column and it sorts instantly clien...
Read more »

Tags: , ,
Posted in SAS | Comments Off

Calculate Net Promoter Score in PROC TABULATE

July 31, 2012
By

This demonstrates an easy way to calculate the Net Promoter Score, a measure of customer loyalty, in SAS’s PROC TABULATE. I prefer to use PROC TABULATE because of its power for various summaries. In the example we repeated the Net … Continu...
Read more »

Tags: , ,
Posted in SAS | Comments Off

100% stacked bar chart in SAS’s SGPLOT

July 5, 2012
By

A 100% stacked bar chart is useful for comparing the relative frequencies of an m x n table where frequencies in m are very different. While this is easy to do in Excel, SAS requires an extra step, which you … Continue reading →
Read more »

Tags: , , , , ,
Posted in SAS | Comments Off

Convert written numbers to Arabic numerals

March 22, 2012
By

In Natural Language Processing it can be helpful within a larger body of text to standardize written numbers to Arabic numerals. For example, we will change “I am forty-six years old” to “I am 46 years old,” so the age … C...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

Proc-x is looking for sponsors!

Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: [email protected]

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.