So far, I have demonstrated
programming in SAS. As much as I have argued for using programming
as the most efficient way of achieving analysis and teaching statistics
in many cases, SAS Studio has created a clever way of generating your
programs that allows you the comfort of a point-and-click type approach
that works with SAS programming. This is known as the Visual Programmer
mode.
In this example, I have
generated a bar chart simply by doing the following easy steps:
-
Initiate SAS Studio Visual Programmer
mode by switching from SAS Programmer mode at the top right. This
opens a process flow window.
-
Drag a pre-defined task from the
Task window (in this case the Graphs > Bar Chart task) to the process
flow.
-
Double click the resulting Bar
Chart process piece gives the settings. Here I define the dataset
and variables using easy drop-down fields.
-
Click the “running person”
icon to get the results. Note: To
see the graph in color, switch to the HTMLBlue results style in Preferences.
There are many other Tasks and what are called “Snippets”
(pieces of code that can be used in various places). You should browse
through these – perhaps after reading the book and acquainting
yourself with the field of basic statistics – to see what Visual
Programmer has to offer. It is an intuitive and pleasing way to generate
simple tasks, but has other disadvantages of point-and-click modes,
such as lack of the full functionality SAS programming can offer.