Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Discover millions of ebooks, audiobooks, and so much more with a free trial

From $11.99/month after trial. Cancel anytime.

Biostatistics by Example Using SAS Studio
Biostatistics by Example Using SAS Studio
Biostatistics by Example Using SAS Studio
Ebook432 pages5 hours

Biostatistics by Example Using SAS Studio

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Learn how to solve basic statistical problems with Ron Cody's easy-to-follow style using the point-and-click SAS Studio tasks.

Aimed specifically at the health sciences, Biostatistics by Example Using SAS Studio, provides an introduction to SAS Studio tasks. The book includes many biological and health-related problem sets and is fully compatible with SAS University Edition.

After reading this book you will be able to understand temporary and permanent SAS data sets, and you will learn how to create them from various data sources. You will also be able to use SAS Studio statistics tasks to generate descriptive statistics for continuous and categorical data. The inferential statistics portion of the book covers the following topics:

  • paired and unpaired t tests
  • one-way analysis of variance
  • N-way ANOVA
  • correlation
  • simple and multiple regression
  • logistic regression
  • categorical data analysis
  • power and sample size calculations

Besides describing each of these statistical tests, the book also discusses the assumptions that need to be met before running and interpreting these tests. For two-sample tests and N-way tests, nonparametric tests are also described.

This book leads you step-by-step through each of the statistical tests with numerous screen shots, and you will see how to read and interpret all of the output generated by these tests.

Experience with some basic statistical tests used to analyze medical data or classroom experience in biostatistics or statistics is required. Although the examples are related to the medical and biology fields, researchers in other fields such as psychology or education will find this book helpful. No programming experience is required.

Loading data files into SAS University Edition? Click here for more information.

LanguageEnglish
PublisherSAS Institute
Release dateSep 22, 2016
ISBN9781629604930
Biostatistics by Example Using SAS Studio
Author

Ron Cody

Ron Cody, EdD, is a retired professor from the Rutgers Robert Wood Johnson Medical School who now works as a private consultant and national instructor for SAS. A SAS user since 1977, Ron's extensive knowledge and innovative style have made him a popular presenter at local, regional, and national SAS conferences. He has authored or co-authored numerous books, such as Learning SAS by Example: A Programmer's Guide, Second Edition; A Gentle Introduction to Statistics Using SAS Studio; Cody's Data Cleaning Techniques Using SAS, Third Edition; SAS Functions by Example, Second Edition; and several other books on SAS programming and statistical analysis. During his career at Rutgers Medical School, he authored or co-authored over 100 articles in scientific journals.

Read more from Ron Cody

Related to Biostatistics by Example Using SAS Studio

Related ebooks

Applications & Software For You

View More

Related articles

Reviews for Biostatistics by Example Using SAS Studio

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Biostatistics by Example Using SAS Studio - Ron Cody

    Chapter 1: What Is the SAS University Edition?

    Introduction

    How to Download the SAS University Edition

    Conclusions

    Introduction

    Many of you will be accessing SAS Studio along with the SAS University edition. If you are using SAS Studio with an edition of SAS that is not the SAS University Edition, you can skip right to Chapter 2 to see how you can use SAS Studio to manage and report your data, to create graphs and reports, and to perform most of the statistical tasks performed by biostatisticians. The examples in this book all use the SAS University Edition, but users of SAS Studio in other environments will see that the statistical tasks are identical to the ones described here.

    SAS University Edition is a full version of SAS software that is free to anyone, and it runs on Microsoft Windows computers as well as Apple laptops and Linux workstations. How can this be?

    When you download this free software, you agree that you will not use it for commercial purposes. As a student or researcher using the SAS University Edition to learn how SAS works, this is not a problem. Once you have mastered the statistical and other tasks using SAS University Edition, you can use those same skills with the licensed versions of SAS used by universities and in the corporate world.

    A huge advantage of using the SAS University Edition is that you access SAS using an interface called SAS Studio. This provides a programming environment that allows you to write SAS programs, but, more importantly, provides you with an interactive point-and-click interface where you can quickly and easily run a large variety of statistical tests.

    This looks too good to be true. Well, there is a slight complication that results from allowing SAS University Edition to run on PCs, Apple, and Linux computers—that is, after you download the SAS University software, you also need to download and install something called virtualization software. If you are not familiar with this term, you are not alone. This author was a complete novice using virtualization software when the first book, An Introduction to SAS University Edition, was written. Since then, especially with the help of my younger son, I am much more comfortable with these tools.

    A virtual computer is a computer that runs on your real computer, running its own operating system and accessing files on your real computer (this is the tricky part). In the PC (Windows) environment, you have several choices of virtualization software. SAS is now recommending a product called Oracle VM VirtualBox. You can download this for free for your own use. This is an open source product that is supported by Oracle Systems and it supports all of the operating systems mentioned. The other alternative for Windows and Linux is called VMware Workstation Player (formally, just called VMware Player). This is still free for non-commercial use. For Apple products, you can also run VMware Fusion (there is a fee).

    Because SAS is now recommending VirtualBox for PC users, the screen shots in this book will use that product. This author has installed both VirtualBox and VMware Player and determined that once you enter the SAS Studio environment, you cannot tell the difference. The bottom line is that once you install one of the virtualization tools, all of the tasks and SAS programs will run exactly the same.

    How to Download the SAS University Edition

    Many of you, this author included, often feel a bit nervous when downloading and installing new software. If you are in this group (probably a bit older like me), find a younger, tech-savvy person to look over your shoulder.

    To obtain your free copy of the SAS University Edition, use the following URL:

    http://www.sas.com/en_us/software/university-edition.html

    This brings up the following screen (Figure 1):

    Figure 1: Obtaining SAS University Edition

    Click the box labeled Get free software to bring up the next screen (Figure 2).

    From here on, if you see the word click, assume it means left-click. Any time a right-click is required, it will be specified.

    Figure 2: Next Step in Obtaining SAS University Edition

    Click Download now (unless you plan to use Amazon Web Services – AWS). This brings up the following screen:

    Figure 3: SAS Download Screen

    Figure 3 shows the required configuration for a Windows machine. If you click OS X, you will see a different list of requirements (Figure 4):

    Figure 4: Requirements for OS X

    If you have an older machine (for example, a PC running a 32-bit operating system), you can search the virtualization sites for older versions that will be compatible with your computer.

    Once you are satisfied, that your computer meets the requirements for running one of the virtualization software applications, scroll down to the choice of virtualization software that you want to install. In Figure 5, you are choosing VirtualBox.

    Figure 5: Choose your Virtualization Software

    Once you have downloaded the virtualization software, click on one of the links farther down on the screen, download a PDF or watch a video (or both) giving you detailed instructions how to set up your virtualization software and SAS Studio.

    Figure 6: Obtain the Get Started Guides (PDF or Videos)

    Finally, you are ready to download the appropriate version of SAS University Edition (Figure 7):

    Figure 7: Download Appropriate Version of SAS University Edition

    If you followed the instructions in the appropriate PDF or video, you will have set up a folder on your computer called \SASUniversityEdition\myfolders. This is the location where SAS University Edition can automatically find files on your hard drive. If you want to access files in other folders on your hard drive, you will need to set up shared folders. (This will be explained in Chapter 3 for those who are interested or need to access data from different locations on their hard drive.) For learning purposes, it is best to place all your data files in SASUniversityEdition\myfolders directory.

    Conclusions

    Yes, there is a bit of work (some of it scary) to set up and run the SAS University Edition on your computer. However, there are many sources of help if you have trouble. And you only have to do it once!

    The next few chapters discuss some of the built-in data sets that you can use to perfect your skills, as well as instructions for using your own data, either on Excel spreadsheets (a very common data source) or text files.

    Chapter 2: SAS Studio Tasks

    Introduction

    Using the Built-in Tasks

    Taking a Tour of the Navigation Pane

    Exploring the LIBRARIES Tab

    Moving Columns

    Sorting Columns

    Filtering a Table (subsetting rows)

    Conclusion

    Introduction

    Hopefully, you have installed your visualization software and the SAS University Edition (or you are running SAS Studio with a standard version of SAS). Now, it's time to get started. You start your virtual computer by double-clicking on the appropriate icon on your desktop (the installation process should have placed this icon there). If you don't see an icon for VirtualBox or one of the versions of VMware, you need to browse through your program list and create a shortcut on your desktop.

    As an example, here is what you will see if you open VirtualBox:

    Figure 1: Opening VirtualBox

    Your screen may look a bit different. Double-click SAS University Edition.

    A window will pop up that looks like this:

    Figure 2: Opening SAS University Edition (VirtualBox)

    The URL may be different from this. Once you enter it into your browser, you will want to bookmark it so that you don't have to type it every time you want to run the SAS University Edition. If you use a version of VMware, the URL will look something like an IP address such as

    http://192.168.117.129

    Regardless of which virtualization software you use, you will be directed to the SAS University Edition: Information Center screen. It looks like this:

    Figure 3: Opening Screen of SAS University Edition: Information Center

    If you see a message telling you that updates are available, you can click the Update icon or click the Start SAS Studio button and update at some other time. The Resources link is also very valuable—you can access help files, videos, books (even some of mine), and the always popular FAQs (frequently asked questions).

    Using the Built-in Tasks

    To open SAS Studio, click Start SAS Studio.

    Figure 4: Opening Screen for SAS Studio

    As you can see in Figure 4, the rectangle on the left is called the navigation pane and the larger rectangular area on the right is called the work area. The navigation pane, as the name implies, allows you to select tasks, browse files and folders, import data from a variety of sources such as Excel workbooks, and do other useful tasks that you will see a bit later.

    The work area consists of three sub-areas called Code, Log, and Results. You can switch to any one of these areas by clicking on the appropriate tab. This is what you see if you are in SAS Programmer mode. You see different tabs when you are in Visual Programmer mode. We will stick to SAS Programmer Mode for all the examples in this book.

    The Code section is where you can write SAS programs (also the place where SAS Studio writes programs for you). The Log area displays information about data being read or written, syntax errors in your SAS code, and information on how much CPU time and total time were used to run your program. The Results area is where SAS Studio displays the tables, graphs, and statistics that either you programmed yourself or you had one or more of the built-in SAS Studio tasks produce for you.

    Taking a Tour of the Navigation Pane

    Figure 5 is an enlargement of the navigation pane.

    Figure 5: Enlarged View of the Navigation Pane

    When you click on any of the choices in the navigation pane, it expands and moves higher in the list. You can also expand or contract any of the sub-lists by clicking on the triangles to the left of the choices.

    Exploring the LIBRARIES Tab

    Let's start your exploration of SAS Studio by clicking the Libraries tab. Your Navigation pane will now look something like this:

    Figure 6: SAS Libraries

    Notice that the triangle to the left of the word Libraries is now pointing downward, telling you that you are looking at sub-lists. Under My Libraries, you see a list of libraries. Libraries are places where SAS puts programs and data sets (think of folders on your hard drive). This author has already created two libraries (BOOK and MYFMTS), so you will not see those libraries on your computer. However, SAS Studio comes with some libraries already installed. The WORK library is a temporary library—all data and programs placed there will not be automatically saved when you exit SAS Studio.

    The SASHELP library contains over 200 data sets, covering a variety of topics such as car sales and health data. These data sets are quite useful because you can use them for examples or testing your code. Click the SASHELP library to see the list of built-in data sets (see Figure 7 below):

    Figure 7: Expanding the SASHELP Libraries

    Let's scroll down to the HEART data set to demonstrate some of the features of SAS Studio. You can either double-click the HEART library or highlight it or drag it to the work area. When you do this, SAS Studio displays the columns of the table and a listing of some of the top rows and columns of the actual table.

    Note: Throughout this book and in the various SAS Studio tasks, the terms Columns and Variables, Rows and Observations, and data sets and tables are used interchangeably. Originally, SAS used the terms Variables, Observations, and data sets instead of the terminology that came along with many database programs (such as SQL) where the terms Columns, Rows, and tables were used instead.

    Having opened the HEART data set, your screen will look as follows:

    Figure 8: The HEART Data Set

    The Columns (variables) in the data set are displayed on the left (Figure 9):

    Figure 9: Columns in the HEART Data Set

    You can click Select all to toggle between selecting all the variables or none. You will see two easy ways to select columns in just a moment.

    The right side of the screen shows a portion of the actual table (Figure 10):

    Figure 10: Columns and Rows from the HEART Data Set

    You can use the horizontal and vertical scroll bars to examine additional columns and rows of this table (Figure 11):

    Figure 11: Horizontal and Vertical Scroll Bars

    As promised, you will now see how to select (or deselect) columns from a table. If you want to display just a few columns, it is best to

    Enjoying the preview?
    Page 1 of 1