DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017
|
|
- Rudolph Sherman
- 5 years ago
- Views:
Transcription
1 DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017 There are a handful of statements (TITLE, FOOTNOTE, WHERE, BY, etc.) that can be used in a wide variety of procedures. For example, consider the following data set named MoviePrices.csv. Use the Import Data wizard to put this dataset into your personal SAS library. Consider the following PROC PRINT code that contains both TITLE and FOOTNOTE statements. PROC PRINT DATA=Hooks.MoviePrices; TITLE1 'Name of Data: Movie Prices'; TITLE2 'Data Source: Amazon'; FOOTNOTE1 'SalesRank is within Movies & TV Section'; Below is the resulting output from SAS. 1
2 Because the TITLE and FOOTNOTE statements are examples of global statements, they need not necessarily be placed within a PROC PRINT statement. Consider the following code which produces the same output as above. TITLE1 'Name of Data: Movie Prices'; TITLE2 'Data Source: Amazon'; FOOTNOTE1 'SalesRank is within Movies & TV Section'; PROC PRINT DATA=Hooks.MoviePrices; Also, note that the TITLE and FOOTNOTE statements will stay in effect until you replace them or cancel them. Thus, commenting out the titles and footnotes will have no effect. *TITLE1 'Name of Data: Movie Prices'; *TITLE2 'Data Source: Amazon'; *FOOTNOTE1 'SalesRank is within Movies & TV Section'; PROC PRINT DATA=Hooks.MoviePrices; To cancel a TITLE or FOOTNOTE statement, you can use the statements again with nothing specified. For example, the following code will cancel both titles and the footnote. TITLE1; TITLE2; FOOTNOTE1; PROC PRINT DATA=Hooks.MoviePrices; 2
3 USING THE WHERE STATEMENT As you have seen, the WHERE statement can be used to work with only a subset of a data set within a procedure (such as PROC PRINT). Using the WHERE statement within a procedure will tell SAS to perform the actions only on the data for which the WHERE condition is satisfied. Consider the following example in which the PROC PRINT prints information only when the Category is Comedy. PROC PRINT DATA=Hooks.MoviePrices; WHERE Category = 'Comedy'; The resulting SAS output: Tasks: 1. Use the WHERE command to print only movies whose SalesRank is less than Use the WHERE command to print only Comedy movies whose SalesRank is less than As mentioned previously, the WHERE statement can be used in a variety of procedures. Instead of using PROC PRINT, consider another procedure called PROC MEANS. This procedure calculates summary statistics (i.e., the mean, standard deviation, etc.). PROC MEANS data=hooks.movieprices; VAR SalesRank; Notice, the resulting output is a summary of SalesRank for all six movies. 3
4 The following code will obtain summary statistics for only the Comedy movies (note that N = 3 in the resulting output because only the three comedies were considered). PROC MEANS data=hooks.movieprices; VAR SalesRank; WHERE Category = 'Comedy'; The resulting SAS output: USING THE BY STATEMENT Similar to the WHERE statement, the BY statement can be used in various procedures. The effect of the BY statement is that any actions of a procedure are done piece-wise according to the variable specified in the BY statement. For example, consider the use of the BY statement in a PROC PRINT. PROC PRINT data=hooks.movieprices; BY Category; The resulting SAS output: 4
5 Next, consider a BY statement that includes a variable that has not been pre-sorted. PROC PRINT data=hooks.movieprices; BY SalesRank; Note that SAS prints only a few of the observations. A quick look at the log window explains why the above code did not produce the desired output PROC PRINT data=hooks.movieprices; 1132 BY SalesRank; 1133 ERROR: Data set HOOKS.MOVIEPRICES is not sorted in ascending sequence. The current BY group has SalesRank = 1952 and the next BY group has SalesRank = 373. NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 3 observations read from the data set HOOKS.MOVIEPRICES. NOTE: PROCEDURE PRINT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds Comment: In general, when you use a BY statement, you must first sort your observations by the variable(s) listed in your BY statement. The next section discusses how to sort data sets in SAS. 5
6 PROC SORT Sometimes it is necessary to sort your data. For example, as we just observed, the data must be pre-sorted in order for the BY statement to work properly. There may also be other times when it is convenient to sort your data by one or more variables, even if it isn t necessary to do so. In all of these situations, you can use PROC SORT. For example, the following program fixes the issue we had in the previous example. PROC SORT DATA=Hooks.MoviePrices OUT=MoviePrices2; BY SalesRank; Name of the data set you want to sort Tells SAS which variable(s) by which you want to sort the data Creates a new data set named MoviePrices2 that is sorted. You can omit this if you simply want to overwrite the original data set with the sorted values. Once the data has been pre-sorted by SalesRank, the following code will produce the desired outcome. PROC PRINT data=movieprices2; BY SalesRank; The resulting SAS output: Note that you could also sort in DESCENDING order using the DESCENDING option: PROC SORT DATA=Hooks.MoviePrices OUT=MoviePrices2; BY DESCENDING SalesRank; 6
7 PROC PRINT Consider the data in the file CourseEnrollments.txt. This data represents fictitious enrollments in classes over two semesters from four different faculty members. The following code can be used to read in this dataset. DATA CourseEnrollments; INFILE '/folders/myfolders/courseenrollments.txt'; INPUT Name $ Subject $4. CourseNum StartDate MMDDYY10. Section Credits Enrollment; PROC PRINT DATA=CourseEnrollments; 7
8 The following is the print-out produced by SAS. 8
9 As we have already discussed, SAS formats dates as the number of days that have passed since January 1, To override this default setting, a format statement can be specified in the PROC PRINT statement. PROC PRINT DATA=CourseEnrollments; FORMAT StartDate MMDDYY10.; Note that this formatting is also done in the labels provided at the top of the output that result from using the BY statement. Consider the following. PROC SORT DATA=CourseEnrollments; BY StartDate; PROC PRINT DATA=CourseEnrollments; BY StartDate; FORMAT StartDate MMDDYY10.; 9
10 There also exist some generic functions that can be used directly within a PROC PRINT statement to summarize a variable. For example, in the following program, the sum of enrollments is computed and printed with the raw date. PROC PRINT DATA=CourseEnrollments; BY StartDate; FORMAT StartDate MMDDYY10.; SUM Enrollment; Tells SAS to compute and display the column total for Enrollment. 10
11 USING PROC FORMAT We have already discussed the use of several different informats/formats available in SAS. You can find these formats and many more on the SAS support website: In addition to these formats automatically supported by SAS, you can also use PROC FORMAT to create your own format for variables. For instance, recall that in the previous example, StartDate = 09/10/2009 represented the Fall 2009 semester and StartDate = 01/15/2010 represented the Spring 2010 semester. Suppose that instead of using the actual dates when printing, we d like PROC PRINT to use Fall/Spring notation. The following code allows us to do this. PROC FORMAT; VALUE Semester = 'Fall 2009' = 'Spring 2010'; PROC PRINT DATA=CourseEnrollments; FORMAT StartDate Semester.; The VALUE statement allows you to create your own customized formats to display the data in a more meaningful way without altering the original variable name or variable type. Here, SAS will print Fall 2009 when the variable StartDate = The VALUE statement used above defines a format which you will refer to as Semester when you want to use it. In order for the format to take effect, you must associate the variable with the format you created using a FORMAT statement in the PROC PRINT step. A portion of the output is shown below. 11
12 The formatting statement works with the labels produced by the BY statement, as well. PROC PRINT DATA=CourseEnrollments; FORMAT StartDate Semester.; BY StartDate; A portion of the output is shown below. 12
DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017
DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017 USING PROC MEANS The routine PROC MEANS can be used to obtain limited summaries for numerical variables (e.g., the mean,
More informationIntroduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions
Introduction to SAS Procedures SAS Basics III Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step Programming
More informationSTAT 7000: Experimental Statistics I
STAT 7000: Experimental Statistics I 2. A Short SAS Tutorial Peng Zeng Department of Mathematics and Statistics Auburn University Fall 2009 Peng Zeng (Auburn University) STAT 7000 Lecture Notes Fall 2009
More informationSAS Programming Basics
SAS Programming Basics SAS Programs SAS Programs consist of three major components: Global statements Procedures Data steps SAS Programs Global Statements Procedures Data Step Notes Data steps and procedures
More informationDSCI 325: Handout 2 Getting Data into SAS Spring 2017
DSCI 325: Handout 2 Getting Data into SAS Spring 2017 Data sets come in many different formats. In some situations, data sets are stored on paper (e.g., surveys) and other times data are stored in huge
More informationSAS seminar. The little SAS book Chapters 3 & 4. April 15, Åsa Klint. By LD Delwiche and SJ Slaughter. 3.1 Creating and Redefining variables
SAS seminar April 15, 2003 Åsa Klint The little SAS book Chapters 3 & 4 By LD Delwiche and SJ Slaughter Data step - read and modify data - create a new dataset - performs actions on rows Proc step - use
More informationIntroduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions
Introduction to SAS Procedures SAS Basics III Susan J. Slaughter, Avocet Solutions DATA versus PROC steps Two basic parts of SAS programs DATA step PROC step Begin with DATA statement Begin with PROC statement
More informationDSCI 325: Handout 3 Creating and Redefining Variable in SAS Spring 2017
DSCI 325: Handout 3 Creating and Redefining Variable in SAS Spring 2017 Content Source: The Little SAS Book, Chapter 3, by L. Delwiche and S. Slaughter. CREATING NEW VARIABLES OR REDEFINING VARIABLES In
More informationECLT 5810 SAS Programming - Introduction
ECLT 5810 SAS Programming - Introduction Why SAS? Able to process data set(s). Easy to handle multiple variables. Generate useful basic analysis Summary statistics Graphs Many companies and government
More informationAccess - Introduction to Queries
Access - Introduction to Queries Part of managing a database involves asking questions about the data. A query is an Access object that you can use to ask the question(s). The answer is contained in the
More informationElementary Statistics. Organizing Raw Data
Organizing Raw Data What is a Raw Data? Raw Data (sometimes called source data) is data that has not been processed for meaningful use. What is a Frequency Distribution Table? A Frequency Distribution
More informationSAS Training Spring 2006
SAS Training Spring 2006 Coxe/Maner/Aiken Introduction to SAS: This is what SAS looks like when you first open it: There is a Log window on top; this will let you know what SAS is doing and if SAS encountered
More informationwork.test temp.test sasuser.test test
DSCI 325 Midterm Practice Test Spring 2017 Name: 1. Consider the following four names used to create a SAS data set: work.test temp.test sasuser.test test How many of these will be stored as permanent
More informationProcessing SAS Data Sets
Statistical Data Analysis 1 Processing SAS Data Sets Namhyoung Kim Dept. of Applied Statistics Gachon University nhkim@gachon.ac.kr 1 Using OUT Dataset OUTPUT Statement OUTPUT
More informationStudent Outcomes. Classwork. Discussion (10 minutes)
Student Outcomes Students know the definition of a number raised to a negative exponent. Students simplify and write equivalent expressions that contain negative exponents. Classwork Discussion (10 minutes)
More informationDSCI 325 Practice Midterm Questions Spring In SAS, a statement must end
DSCI 325 Practice Midterm Questions Spring 2016 1. In SAS, a statement must end a. with a colon b. with a semicolon c. in a new line d. with the command RUN 2. Which of the following is a valid variable
More informationLecture 1 Getting Started with SAS
SAS for Data Management, Analysis, and Reporting Lecture 1 Getting Started with SAS Portions reproduced with permission of SAS Institute Inc., Cary, NC, USA Goals of the course To provide skills required
More informationSEP Template Management Procedure Document
SEP Template Management Procedure Document Getting Started First login to Cyberbear and from the ribbon on the top of the screen click on Cyberbear For Faculty and Advisors. Next click DegreeWorks and
More informationIntroduction to DATA Step Programming: SAS Basics II. Susan J. Slaughter, Avocet Solutions
Introduction to DATA Step Programming: SAS Basics II Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step
More informationIntroduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions
Introduction to DATA Step Programming SAS Basics II Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step Programming
More informationMicrosoft Access XP (2002) - Advanced Queries
Microsoft Access XP (2002) - Advanced Queries Group/Summary Operations Change Join Properties Not Equal Query Parameter Queries Working with Text IIF Queries Expression Builder Backing up Tables Action
More informationUsing the SAS/MDDB and User Written Methods to Enhance SAS/EIS Objects
Using the SAS/MDDB and User Written Methods to Enhance SAS/EIS Objects Ben Cochran, The Bedford Group, Raleigh, NC Abstract SAS/EIS software provides an extensive, interactive applications development
More informationTurn In: A copy of the first 50 lines or so of the converted text file.
STAT 325: Final, Take home Spring 2012 Points: 100 pts Name: We will begin by working with the Fools Five dataset. The Fools Five is a large event held each year in Lewiston, MN. The main event is the
More informationSection 6.1 Measures of Center
Section 6.1 Measures of Center Objective: Compute a mean This lesson we are going to continue summarizing data. Instead of using tables and graphs we are going to make some numerical calculations that
More informationCHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design
Objective 1: Identify Good Database Design CHAPTER 6 SUMMARY A database is an organized collection of data facts about people, events, things, or ideas related to a specific topic or purpose. Information
More informationExploratory data analysis with one and two variables
Exploratory data analysis with one and two variables Instructions for Lab # 1 Statistics 111 - Probability and Statistical Inference DUE DATE: Upload on Sakai on July 10 Lab Objective To explore data with
More informationChecking for Duplicates Wendi L. Wright
Checking for Duplicates Wendi L. Wright ABSTRACT This introductory level paper demonstrates a quick way to find duplicates in a dataset (with both simple and complex keys). It discusses what to do when
More informationDSCI 325: Handout 1 Introduction to SAS Programs Spring 2017
DSCI 325: Handout 1 Introduction to SAS Programs Spring 2017 SAS (which originally stood for Statistical Analysis System) was started in 1976 and since this time has become an industry standard in the
More informationJava How to Program, 9/e. Copyright by Pearson Education, Inc. All Rights Reserved.
Java How to Program, 9/e Copyright 1992-2012 by Pearson Education, Inc. All Rights Reserved. Searching data involves determining whether a value (referred to as the search key) is present in the data
More informationReading data in SAS and Descriptive Statistics
P8130 Recitation 1: Reading data in SAS and Descriptive Statistics Zilan Chai Sep. 18 th /20 th 2017 Outline Intro to SAS (windows, basic rules) Getting Data into SAS Descriptive Statistics SAS Windows
More informationDSCI 325: Handout 4 If-Then Statements in SAS Spring 2017
DSCI 325: Handout 4 If-Then Statements in SAS Spring 2017 IF-THEN STATEMENTS IN SAS We have already worked briefly with IF-THEN statements in SAS. Here, we will discuss using IF-THEN statements in a DATA
More informationChapter 6: Modifying and Combining Data Sets
Chapter 6: Modifying and Combining Data Sets The SET statement is a powerful statement in the DATA step. Its main use is to read in a previously created SAS data set which can be modified and saved as
More informationBasic Commands. Consider the data set: {15, 22, 32, 31, 52, 41, 11}
Entering Data: Basic Commands Consider the data set: {15, 22, 32, 31, 52, 41, 11} Data is stored in Lists on the calculator. Locate and press the STAT button on the calculator. Choose EDIT. The calculator
More informationEssentials of PDV: Directing the Aim to Understanding the DATA Step! Arthur Xuejun Li, City of Hope National Medical Center, Duarte, CA
PharmaSUG 2013 - Paper TF17 Essentials of PDV: Directing the Aim to Understanding the DATA Step! Arthur Xuejun Li, City of Hope National Medical Center, Duarte, CA ABSTRACT Beginning programmers often
More informationSTATION
------------------------------STATION 1------------------------------ 1. Which of the following statements displays all user-defined macro variables in the SAS log? a) %put user=; b) %put user; c) %put
More informationChapter 2: Getting Data Into SAS
Chapter 2: Getting Data Into SAS Data stored in many different forms/formats. Four categories of ways to read in data. 1. Entering data directly through keyboard 2. Creating SAS data sets from raw data
More informationManager Menu: USTO Tracking Report
The USTO Tracking Report helps you identify who has completed Underground Storage Tank Operating training. Records that appear in this report have been added to the Iowa UST Operator Training Data Management
More informationECONOMICS 351* -- Stata 10 Tutorial 1. Stata 10 Tutorial 1
TOPIC: Getting Started with Stata Stata 10 Tutorial 1 DATA: auto1.raw and auto1.txt (two text-format data files) TASKS: Stata 10 Tutorial 1 is intended to introduce (or re-introduce) you to some of the
More informationSTA 570 Spring Lecture 5 Tuesday, Feb 1
STA 570 Spring 2011 Lecture 5 Tuesday, Feb 1 Descriptive Statistics Summarizing Univariate Data o Standard Deviation, Empirical Rule, IQR o Boxplots Summarizing Bivariate Data o Contingency Tables o Row
More informationSAS Macro Programming for Beginners
ABSTRACT SAS Macro Programming for Beginners Lora D. Delwiche, Winters, CA Susan J. Slaughter, Avocet Solutions, Davis, CA Macro programming is generally considered an advanced topic. But, while macros
More informationCSC 221: Introduction to Programming. Fall 2013
CSC 221: Introduction to Programming Fall 2013 Big data building lists list comprehensions, throwaway comprehensions conditional comprehensions processing large data files example: dictionary, anagram
More informationChapter 3: Working With Your Data
Chapter 3: Working With Your Data Creating variables based on other variables is easily done within the data step. Assignment is carried out with the = sign. Example: INPUT var1 var2 var3; mysum = var1
More informationOverview of Data Management Tasks (command file=datamgt.sas)
Overview of Data Management Tasks (command file=datamgt.sas) Create the March data set: To create the March data set, you can read it from the MARCH.DAT raw data file, using a data step, as shown below.
More informationMicrosoft Access 2003
Using a Database - MS Access XP Microsoft Access Introduction To Microsoft Access 1 A Database is: A method used to organize information so that the information can be retrieved quickly. Examples of Common
More informationPowerPoint Presentation to Accompany GO! All In One. Chapter 13
PowerPoint Presentation to Accompany GO! Chapter 13 Create, Query, and Sort an Access Database; Create Forms and Reports 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Objectives Identify Good
More informationDSCI 325: Handout 15 Introduction to SAS Macro Programming Spring 2017
DSCI 325: Handout 15 Introduction to SAS Macro Programming Spring 2017 The Basics of the SAS Macro Facility Macros are used to make SAS code more flexible and efficient. Essentially, the macro facility
More informationStat Wk 3. Stat 342 Notes. Week 3, Page 1 / 71
Stat 342 - Wk 3 What is SQL Proc SQL 'Select' command and 'from' clause 'group by' clause 'order by' clause 'where' clause 'create table' command 'inner join' (as time permits) Stat 342 Notes. Week 3,
More informationBase and Advance SAS
Base and Advance SAS BASE SAS INTRODUCTION An Overview of the SAS System SAS Tasks Output produced by the SAS System SAS Tools (SAS Program - Data step and Proc step) A sample SAS program Exploring SAS
More informationMicrosoft Access. Data may include facts about people, events, things, or ideas, and is an important asset to any organization.
Access is a database creation and management program. A database is a collection of records. The purpose of a database is to store, manage, and provide access to these records. Data may include facts about
More informationPaper DB2 table. For a simple read of a table, SQL and DATA step operate with similar efficiency.
Paper 76-28 Comparative Efficiency of SQL and Base Code When Reading from Database Tables and Existing Data Sets Steven Feder, Federal Reserve Board, Washington, D.C. ABSTRACT In this paper we compare
More informationHow to Request a Client using the UCC Self Serve Website. The following provides a detailed description of how to request a client...
The following provides a detailed description of how to request a client... 1. User Info - The first step is to confirm that we have your current information in case we need to contact you. Click on the
More informationData wrangling. Reduction/Aggregation: reduces a variable to a scalar
Data Wrangling Some definitions A data table is a collection of variables and observations A variable (when data are tidy) is a single column in a data table An observation is a single row in a data table,
More informationDSCI 325: Handout 6 More on Manipulating Data in SAS Spring 2017
DSCI 325: Handout 6 More on Manipulating Data in SAS Spring 2017 CREATING VARIABLES IN SAS: A WRAP-UP As you have already seen several times, SAS variables can be created with an assignment statement in
More informationPlan Sponsor Security Quick Reference
Plan Sponsor Security Quick Reference About Profiles A profile is used to tell the system what tasks a user is allowed to perform and what information they have access to within the Plan Sponsor site.
More informationNassau Community College. Banner Information and Registration Guide
Nassau Community College Faculty/Advisor Banner Information and Registration Guide What can I do in Banner? As a faculty/advisor, you can advise and register students. View your class lists(rosters) for
More information2.1: Frequency Distributions and Their Graphs
2.1: Frequency Distributions and Their Graphs Frequency Distribution - way to display data that has many entries - table that shows classes or intervals of data entries and the number of entries in each
More informationEffectively Utilizing Loops and Arrays in the DATA Step
Paper 1618-2014 Effectively Utilizing Loops and Arrays in the DATA Step Arthur Li, City of Hope National Medical Center, Duarte, CA ABSTRACT The implicit loop refers to the DATA step repetitively reading
More informationIntroduction to SAS. Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC
Introduction to SAS Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC cmurray-krezan@salud.unm.edu 20 August 2018 What is SAS? Statistical Analysis System,
More informationFrequency Tables. Chapter 500. Introduction. Frequency Tables. Types of Categorical Variables. Data Structure. Missing Values
Chapter 500 Introduction This procedure produces tables of frequency counts and percentages for categorical and continuous variables. This procedure serves as a summary reporting tool and is often used
More informationASSOCIATION BETWEEN VARIABLES: CROSSTABULATIONS
POLI 300 Handouts #10 Fall 2006 ASSOCIATION BETWEEN VARIABLES: CROSSTABULATIONS Suppose we want to do research on the following bivariate hypothesis: the more interested people are in politics, the more
More informationContinuing Education Flex Tutorial
Continuing Education Flex Tutorial 8/29/2008 The Instructional Improvement (Flex) website may be accessed from Continuing Education Faculty Web Services at https://cefaculty.sdccd.edu by selecting the
More informationCPS221 Lecture: Relational Database Querying and Updating
CPS221 Lecture: Relational Database Querying and Updating last revised 8/5/10 Objectives: 1. To introduce the SQL select statement 2. To introduce the SQL insert, update, and delete statements Materials:
More informationAn Introduction to PROC REPORT
Paper BB-276 An Introduction to PROC REPORT Kirk Paul Lafler, Software Intelligence Corporation, Spring Valley, California Abstract SAS users often need to create and deliver quality custom reports and
More informationCPS221 Lecture: Relational Database Querying and Updating
CPS221 Lecture: Relational Database Querying and Updating Objectives: last revised 10/29/14 1. To introduce the SQL select statement 2. To introduce the SQL insert, update, and delete statements Materials:
More informationFrom Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX
Paper 152-27 From Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX ABSTRACT This paper is a case study of how SAS products were
More informationAn Introduction to Stata Exercise 1
An Introduction to Stata Exercise 1 Anna Folke Larsen, September 2016 1 Table of Contents 1 Introduction... 1 2 Initial options... 3 3 Reading a data set from a spreadsheet... 5 4 Descriptive statistics...
More informationMicrosoft Office Access Learn how to use the Query window in Design view. Tutorial 3b Querying a Database
Microsoft Office Access 2003 Tutorial 3b Querying a Database 1 Learn how to use the Query window in Design view The Query window in Design view allows you to specify the results you want for a query. In
More informationEventus Example Series Using Non-CRSP Data in Eventus 7 1
Eventus Example Series Using Non-CRSP Data in Eventus 7 1 Goal: Use Eventus software version 7.0 or higher to construct a mini-database of data obtained from any source, and run one or more event studies
More informationUsing Microsoft Excel
Using Microsoft Excel Introduction This handout briefly outlines most of the basic uses and functions of Excel that we will be using in this course. Although Excel may be used for performing statistical
More informationMajors & SSCH by Department Dashboard Guide
Majors & SSCH by Department Dashboard Guide The following guide provides assistance in running and understanding the information that the Argos dashboard returns. The dashboard is located within the Argos
More informationIntroductory Guide to SAS:
Introductory Guide to SAS: For UVM Statistics Students By Richard Single Contents 1 Introduction and Preliminaries 2 2 Reading in Data: The DATA Step 2 2.1 The DATA Statement............................................
More informationSAS - By Group Processing umanitoba.ca/centres/mchp
SAS - By Group Processing umanitoba.ca/centres/mchp Winnipeg SAS users Group SAS By Group Processing Are you First or Last In Line Charles Burchill Manitoba Centre for Health Policy, University of Manitoba
More informationGeneral Tips for Working with Large SAS datasets and Oracle tables
General Tips for Working with Large SAS datasets and Oracle tables 1) Avoid duplicating Oracle tables as SAS datasets only keep the rows and columns needed for your analysis. Use keep/drop/where directly
More informationLevel 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE
C30147 RELATIONAL DATABASE Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards This module has been developed to further the learner s
More informationLecture Notes 3: Data summarization
Lecture Notes 3: Data summarization Highlights: Average Median Quartiles 5-number summary (and relation to boxplots) Outliers Range & IQR Variance and standard deviation Determining shape using mean &
More informationLimits. f(x) and lim. g(x) g(x)
Limits Limit Laws Suppose c is constant, n is a positive integer, and f() and g() both eist. Then,. [f() + g()] = f() + g() 2. [f() g()] = f() g() [ ] 3. [c f()] = c f() [ ] [ ] 4. [f() g()] = f() g()
More informationABOUT PIVOTTABLES TABLE OF CONTENTS
University of Southern California Academic Information Services Excel 2007 - PivotTables ABOUT PIVOTTABLES PivotTables provide an excellent means of analyzing data stored in database format by rearranging
More informationThe EMCLUS Procedure. The EMCLUS Procedure
The EMCLUS Procedure Overview Procedure Syntax PROC EMCLUS Statement VAR Statement INITCLUS Statement Output from PROC EMCLUS EXAMPLES-SECTION Example 1: Syntax for PROC FASTCLUS Example 2: Use of the
More informationGetting it Done with PROC TABULATE
ABSTRACT Getting it Done with PROC TABULATE Michael J. Williams, ICON Clinical Research, San Francisco, CA The task of displaying statistical summaries of different types of variables in a single table
More informationPaper PS05_05 Using SAS to Process Repeated Measures Data Terry Fain, RAND Corporation Cyndie Gareleck, RAND Corporation
Paper PS05_05 Using SAS to Process Repeated Measures Data Terry Fain, RAND Corporation Cyndie Gareleck, RAND Corporation ABSTRACT Data that contain multiple observations per case are called repeated measures
More informationIntroduction to PROC SQL
Introduction to PROC SQL Steven First, Systems Seminar Consultants, Madison, WI ABSTRACT PROC SQL is a powerful Base SAS Procedure that combines the functionality of DATA and PROC steps into a single step.
More informationPublic-Private Dialogue
Public-Private Dialogue www.publicprivatedialogue.org The PPD Reform Tracking Tool A tutorial to use a tool designed to manage, track and report on Working Groups issues 1- INTRODUCTION... 3 2 - BROWSING
More informationCOMM 391 Winter 2014 Term 1
COMM 391 Winter 2014 Term 1 Tutorial 3: Microsoft Access Introducing Tables, Relationships, and Creating Queries The purpose of this tutorial is enable you to 1) explore the tables and relationships in
More informationObjectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy
Reading SAS Data Sets and Creating Variables Objectives Create a SAS data set using another SAS data set as input. Create SAS variables. Use operators and SAS functions to manipulate data values. Control
More informationTOP 10 (OR MORE) WAYS TO OPTIMIZE YOUR SAS CODE
TOP 10 (OR MORE) WAYS TO OPTIMIZE YOUR SAS CODE Handy Tips for the Savvy Programmer SAS PROGRAMMING BEST PRACTICES Create Readable Code Basic Coding Recommendations» Efficiently choosing data for processing»
More informationEXAMPLE 2: INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT
EXAMPLE 2: PART I - INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT USING THESE WORKSHEETS For each of the worksheets you have a
More informationSAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority
SAS 101 Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23 By Tasha Chapman, Oregon Health Authority Topics covered All the leftovers! Infile options Missover LRECL=/Pad/Truncover
More informationSAS Studio: A New Way to Program in SAS
SAS Studio: A New Way to Program in SAS Lora D Delwiche, Winters, CA Susan J Slaughter, Avocet Solutions, Davis, CA ABSTRACT SAS Studio is an important new interface for SAS, designed for both traditional
More informationFall 2018 CSE 482 Big Data Analysis: Exam 1 Total: 36 (+3 bonus points)
Fall 2018 CSE 482 Big Data Analysis: Exam 1 Total: 36 (+3 bonus points) Name: This exam is open book and notes. You can use a calculator but no laptops, cell phones, nor other electronic devices are allowed.
More informationFLAC- PEPFLAC. A guide for the extraction of assignments from SIAASGN to Self-Service Banner (SSB) FLAC on SeaNet
FLAC- PEPFLAC A guide for the extraction of assignments from SIAASGN to Self-Service Banner (SSB) FLAC on SeaNet These are general FLAC instructions for all of UNCW. Your unit s instruction may differ
More informationChapter Six: Arrays and Vectors
Chapter Six: Arrays and Vectors Slides by Evan Gallagher Chapter Goals To become familiar with using arrays and vectors to collect values To learn about common algorithms for processing arrays and vectors
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2015 Chapter 11 Part 1 The Department of Computer Science Objectives Chapter 11 Data Collections To understand the use of lists (arrays)
More informationAdvanced Excel Skills
Advanced Excel Skills Note : This tutorial is based upon MSExcel 2000. If you are using MSExcel 2002, there may be some operations which look slightly different (e.g. pivot tables), but the same principles
More information1. Managing Information in Table
1. Managing Information in Table Spreadsheets are great for making lists (such as phone lists, client lists). The researchers discovered that not only was list management the number one spreadsheet activity,
More informationIntroduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions
Introduction to DATA Step Programming SAS Basics II Susan J. Slaughter, Avocet Solutions DATA versus PROC steps Two basic parts of SAS programs DATA step PROC step Begin with DATA statement Begin with
More informationPROC REPORT AN INTRODUCTION
Table Generation Using the PROC REPORT Feature Edward R. Smith, Senior Scientific Programmer Covance Periapproval Services Inc, Radnor, PA ABSTRACT The PROC REPORT procedure is a powerful report generation
More informationIntroduction to MS Access queries
Introduction to MS Access queries Topics Covered Brief introduction to MS Access query capabilities BSAD 141 Dave Novak Introduction to Access provides powerful query capabilities that allow you to do
More informationRelational Databases. APPENDIX A Overview of Relational Database Structure and SOL
APPENDIX A Overview of Relational Database Structure and SOL - THIS APPENDIX CONTAINS a brief overview of relational databases and the Structured Query Language (SQL). It provides the basic knowledge necessary
More informationCS 320 Midterm Exam Solution
Name: BU ID: CS 320 Midterm Exam Solution Fall 2018 Write here the number of the problem you are skipping: You must complete 4 of the 5 problems on this exam for full credit. Each problem is of equal weight.
More informationBusiness Intelligence Reporting User Guide. American University s Executive Dashboard
American University s Executive Dashboard Accessing BI Reporting Log on to the myau.american.edu Portal, then expand the TECHNOLOGY link under Personalized links. Select BI REPORTING. Access to view this
More information