Sei sulla pagina 1di 26

SAS Visual Statistics Walk-through Examples

1 Logging on to SAS Visual Analytics

SAS Visual Statistics is an add-on to SAS Visual Analytics. To get started, log on to the SAS Visual
Analytics visual interface. Point your browser to the SAS Visual Analytics URL provided by your
administrator. When prompted, enter your user ID and password.

1
2 Getting Started with SAS Visual Analytics

2.1 Click New on the Welcome screen.

2
The interface appears as follows.

2.2 Clicking the three lines (as shown in the screen capture above) in the upper left brings up the SAS
Visual Analytics navigation menu. Clicking the double arrow to the right of the Home option,
closes the menu.

3
2.3 During the first logon session, the environment data needs to be loaded into memory. To get
started, click Data under the SAS Environment Manager entry in the navigation menu.

2.4 In the Environment Manager, toggle the view from Loaded tables to Libraries.

4
2.5 In the Libraries view, double click on the DemoData library.

There are a variety of sample data sets that can be accessed during the Early Preview. In this view, none
of the sample data sets are loaded into memory. The data set associated with this walkthrough is called
DIGITAL CLICKSTREAM DATA.

5
2.6 Right-click on DIGITAL CLICKSTREAM DATA, and select Load.

The State icon changes from a red square to a green circle, indicating that the data was successfully
loaded into memory.

6
2.7 Click the three horizontal lines ( ) on the top left to open the Navigation menu, then click SAS
Visual Analytics.

2.8 Click New to return to the primary SAS Visual Analytics interface.

The three vertical dots on the far right of the screen opens a menu. This enables the creation of new
reports and explorations, opening existing reports or explorations, and a variety of other operations.

7
Note the pin icons at the bottom of the Data pane on the left and the Actions pane on the right (shown
in the screenshot above). The pins allow the panes to be pinned and unpinned. The Data and Actions
panes can be completely undocked and repositioned anywhere on the screen.

8
The pane on the left has options for adding data and objects. There is an option for viewing report
outline or exploration. Note that for the Early Preview Program, all users will have access to SAS Visual
Analytics, SAS Visual Statistics, and SAS Visual Data Mining and Machine Learning. The objects for each
are displayed in the Objects pane. SAS Visual Statistics and SAS Visual Data Mining and Machine
Learning are available as add-ons.

The pane on the right has context sensitive menus that correspond with the report objects.

9
10
3 Building Logistic Regression model in SAS Visual Statistics
3.1 Click the Data icon on the left side. Select DIGITAL CLICKSTREAM DATA and click OK. If there are
no datasets displayed, click the refresh icon ( ) to the far right of the All data sources: text.

3.2 After selecting the data, you will see it populate the Data pane. To see the available reporting and
analytical objects, select Objects. To see a summary of the report tabs, click Outline.

11
3.3 Click the Objects icon.

3.4 Scroll down to the SAS Visual Statistics objects. Each object represents a modeling or model
comparison task.

12
3.5 Select Logistic Regression and drag it onto the workspace. With the logistic regression on the
screen, select the Roles icon on the right.

3.6 Add White Paper DLs Ind as the response variable. This is a binary variable indicating whether a
user downloaded a white paper from the IT Companys website.

13
3.7 Add the following as the six indicator variables to the model as classification effects:
Cloud Computing Interest Ind, Internet of Things Internet Ind, Mobile & Wireless Interest Ind,
Database Interest Ind, Storage Interest Ind, and Security Interest Ind.
Once added, a logistic regression model is trained instantaneously in an automated fashion.

3.8 Add the Visitor Engagements Pts attribute under Continuous effects by clicking on +.

14
The first visualization, on the left in the screen above, is the Variable Importance plot. This plot displays
the negative log value for each variable p-value. Higher variable importance indicates more significant p-
values.

3.9 The output includes a residual plot for model diagnosis. Right-click on the statistic name to switch
to other types of residuals such as Deviance, Pearson, and Standardized Pearson.

15
3.10 Right-click Model Assessment to switch to other assessment visualizations, such as the Lift chart,
the ROC curve, and the Misclassification chart.

3.11 Hover your mouse on to see the drop-down menu. To take action with this model, left-click
on the options button to expand it.

16
3.12 Click Export Model to download it as a SAS DATA step score. You can derive predicted values
from the model (Derive predicted) to use in SAS Visual Analytics. The summary tables can be
exported as Microsoft Excel files (Export data).

3.13 To view the logistic model summary tables, click on the Explore icon in the upper right corner of
the screen.

17
4 Building a Decision Tree Model in SAS Visual Statistics
4.1 Click the plus sign icon ( ) to the right of the words Page 1 at the top left of the screen to
create a new page.

4.2 From the Objects pane, drag a Decision Tree object and drop it onto the center workspace.

18
4.3 Assign White Paper DLs Ind as the response variable. Add the following six Interest Indicators to
train a decision tree model: Cloud Computing Interest Ind, Internet of Things Internet Ind, Mobile
& Wireless Interest Ind, Database Interest Ind, Storage Interest Ind, and Security Interest Ind.

4.4 Variable importance is displayed by default. Right-click to switch to a leaf statistics plot.

19
4.5 Right-click on the model assessment visualization to look at other types of model assessment
charts such as: Lift, ROC, and Misclassification.

20
4.6 Click on Options on the right hand side pane. Decision Tree model parameters are available on
the Options pane.

4.7 Hover your mouse on to see the drop-down menu. To take action with this model, left-click
on the options button to expand it. You could click the Derive Leaf ID variable to save data
segments from the decision tree model.

21
4.8 To download the model summary tables as a Microsoft Excel file, click on Export data. Click
the Export Model to download the model as a SAS DATA step code.

22
5 Building Clustering a Model in SAS Visual Statistics
5.1 Click the plus sign icon ( ) to the right of the current page (Page 1) at the top left of the
screen to create a new page.

5.2 From the Objects pane, drag the Cluster object and drop it onto the center workspace.

23
5.3 To learn more about anonymous visitors to the IT companys website look at Inferred Approx Age,
Inferred Education, Inferred Employment and Inferred Income. Visitors are segmented based on
this information.

5.4 After the four variables are assigned to the clustering model, a k-means clustering model is built.
The default cluster count is five.

24
5.5 To visualize a specific cluster pattern, click on a cluster ID. Ctrl-click to select multiple clusters for
comparison.

The default cluster count is five. This default value and other clustering parameters can be
changed in the Options pane.

25
5.6 The data segments from a cluster model can be applied to other visualizations in SAS Visual
Statistics and SAS Visual Analytics after deriving a cluster ID. Hover your mouse on to see the
drop-down menu. To take action with this model, left-click on the options button to expand it.
You can click on Derive a cluster ID variable to add it as a variable.

5.7 Click Export datato download the model summary tables in an Excel file. Click Export modelto
produce the clustering model as a SAS DATA step.

26

Potrebbero piacerti anche