The best way to generate dummy variables in SAS

August 31, 2020
By
The best way to generate dummy variables in SAS

On discussion forums, many SAS programmers ask about the best way to generate dummy variables for categorical variables. Well-meaning responders offer all sorts of advice, including writing your own DATA step program, sometimes mixed with macro programming. This article shows that the simplest and easiest way to generate dummy variables

The post Read more »

Build a decision tree in SAS

August 27, 2020
By
Build a decision tree in SAS

Decision trees are a fundamental machine learning technique that every data scientist should know. Luckily, the construction and implementation of decision trees in SAS is straightforward and easy to produce. There are simply three sections to review for the development of decision trees: Data Tree development Model evaluation Data The

Build a...
Read more »

Rewinding random number streams: An application

August 26, 2020
By
Rewinding random number streams: An application

In the paper "Tips and Techniques for Using the Random-Number Generators in SAS" (Sarle and Wicklin, 2018), I discussed an example that uses the new STREAMREWIND subroutine in Base SAS 9.4M5. As its name implies, the STREAMREWIND subroutine rewinds a random number stream, essentially resetting the stream to the beginning.

The post Read more »

Analytics for everyone with SAS Viya

August 25, 2020
By
Analytics for everyone with SAS Viya

Analytics is playing an increasingly strategic role in the ongoing digital transformation of organizations today. However, to succeed and scale your digital transformation efforts, it is critical to enable analytics skills at all tiers of your organization. In a recent blog post covering 4 principles of analytics you cannot ignore,

Analytics for...
Read more »

How does PROC FCMP store functions?

August 24, 2020
By
How does PROC FCMP store functions?

I got a lot of feedback about my recent article about how to find roots of nonlinear functions by using the SOLVE function in PROC FCMP. A colleague asked how the FCMP procedure stores the functions. Specifically, why the OUTLIB= option on the PROC FCMP statement use a three-level syntax:

The post Read more »

Discover Visual Analytics Report Paths with REST APIs

August 20, 2020
By
Discover Visual Analytics Report Paths with REST APIs

SAS Viya is an open analytics platform accessible from interfaces or various coding languages. REST API is one of the widely used interfaces. Multiple resources exist on how to access SAS Visual Analytics reports using SAS Viya REST API. For example Programmatically listing data sources in SAS Visual Analytics by

Discover Visual...
Read more »

Find the root of a function by using the SAS DATA step

August 19, 2020
By
Find the root of  a function by using the SAS DATA step

Finding the root (or zero) of a nonlinear function is an important computational task. In the case of a one-variable function, you can use the SOLVE function in PROC FCMP to find roots of nonlinear functions in the DATA step. This article shows how to use the SOLVE function to

The post Read more »

How SAS Visual Analytics’ automated prediction takes customer care to the next level

August 17, 2020
By
How SAS Visual Analytics’ automated prediction takes customer care to the next level

What is automated prediction?

Automated prediction, in less than a minute, runs several analytic models (such as decision trees, gradient boosting, and logistic and linear regression) on a specific variable of your choice. Most of the remaining variables in your dataset are automatically analyzed as factors that might influence your specified variable. They are called...
Read more »

Estimate a power curve in parallel in SAS Viya

August 17, 2020
By
Estimate a power curve in parallel in SAS Viya

I recently showed how to use simulation to estimate the power of a statistical hypothesis test. The example (a two-sample t test for the difference of means) is a simple SAS/IML module that is very fast. Fast is good because often you want to perform a sequence of simulations over

The post Read more »

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.

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: tal.galili@gmail.com
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.