0% found this document useful (0 votes)
11 views

SAS Studio 09 Hypothesis Testing For Proportions

Uploaded by

Vinod Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

SAS Studio 09 Hypothesis Testing For Proportions

Uploaded by

Vinod Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SAS Studio Exercise 09

Hypothesis Testing for


Proportions

(11/22/2024)

Sources
Steve Nolan, Ron Freeze, Elizabeth Keiffer, Michael Gibbs, Jorge Moreda
Enterprise Systems, Sam M. Walton College of Business, University of Arkansas, Fayetteville
SAS® Studio. Release 5.2
SAS® VIYA® release V.03.05

Copyright © 2018 For educational uses only - adapted from sources with permission. No part of this
publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means,
electronic, mechanical, photocopying, or otherwise, without the prior written permission from the
author/presenter.
Use Case – Hypothesis Testing for
Proportions
Razorback Stores is a local department store serving a metropolitan area. As a department store, they
offer a wide variety of items and services and track sales through a point of sale system. Over the past
several months, Razorback Stores performed a marketing campaign designed to promote and incentivize
a loyalty program.
As a recent hire, your boss has asked you to analyze the following:
 Is the proportion of promotional customers less than 50%?

Step 0: Navigate to SAS Studio/Activate CAS Session


Before jumping into the Hypothesis Testing task, please refer back to SAS Studio 01 – Logging into the
System to understand how to navigate to SAS Studio, activate a CAS session, and manage your data.
We will be using the Razorback Stores dataset which will be provided by your instructor and/or is
available on blackboard. Once you have this dataset loaded on SAS Viya, following SAS Studio 01 –
Logging into the System tutorial, load this dataset into memory in your personal user folder.

Step 1: Tasks
In order to access the One-Way Frequencies task within SAS Studio:
1. Click on the Tasks icon located on the left-panel
2. Expand the SAS Tasks folder
3. Expand the Statistics folder
4. Expand the Descriptive folder
5. Double click One-Way Frequencies

Step 2: Select Data


Next, you need to select your data. In this case, we will be choosing
Razorback Stores which can be found in our User folder. Under
DATA,
6. Click on the folder icon located at the right of the current
dataset in place
A new Choose a Table window will open,
7. Click on Libraries
A list of all the folders available to you
will be displayed.
8. Click on MYCASLIB which
references your User folder
All the different datasets found in your
User folder will display.
3

9. Click on RAZORBACK_STORES
10. Click OK

Step 3: Select Variables


Once you have Razorback Stores dataset selected, we need to select the variables we want to work with.
You will notice red font color text which requires you to select a minimum of one variable. Under
ROLES, notice you have one subtitle:
 Analysis variables: what variable you want to analyze. For this
tutorial: Type of Customer
11. Click on the + sign to the right of Analysis variables
A new window will open, titled Column Selection.
12. Select Type of Customer
13. Click OK

Step 4: Modify Settings


Once you have selected your dataset and variables, you can move to
the Options tab where you will modify the characteristics of the
model you want to run:
14. Click on the OPTIONS tab
15. Expand the STATISTICS option
Under Binomial Proportion,
16. click on the Asymptotic test box
17. Set your Null hypothesis proportion to 0.5
18. Set your Confidence level to 95%
Notice that as we have selected a dataset, variables, and
checked/unchecked settings, there is a code area on the right side of
the screen that has been updating as we modified these.

19. Click Run

Step 5: Results
Once the task has executed, you will have your One-Way Frequency results view in the right most pane.
In order to better visualize the results, locate the three dots at the very right
end of the screen under the current date and time.
20. Click on these three dots and,
21. Click on Open in a browser tab
22. Click on Results
23. Alternatively, you can click on the Maximize preview icon
Under Results, notice that you have a folder labeled The Freq Procedure,
and two folders under it named Table Type of Customer, and Distribution
Plots, where you can find subfolders within.
24. Expand all the folders
25. Click on the files inside
You will notice that as you click on these files, the tables and plots on the
right window will change.
When clicking on any of these sections, SAS Studio will take you to the
table/graph to which that section references in the right.
Binomial Proportion:

Binomial Confidence Limits:

Binomial Proportion Test:

One-Way Frequencies:

Frequency Plot
5

Cumulative Frequency Plot

Under the Results section, we can see the z value and p-value. From here, we can accept or reject our
null hypothesis.

Congratulations, you have successfully performed a Hypothesis Testing for Proportions on SAS Studio!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy