Turn In: A copy of the first 50 lines or so of the converted text file.

Size: px
Start display at page:

Download "Turn In: A copy of the first 50 lines or so of the converted text file."

Transcription

1 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 running event and data from this event will be investigated here. Download the Fools Five 8k Results for 2012 file from our course website or the Fools Five website ( SAS cannot read a PDF file in; however, there are free easy to use software packages that will convert PDF files to text file (which we know can be read into SAS). 1. Go to and convert the pdf file containing the Fools Five Results for Save a copy of the converted text file. (4 pts) Turn In: A copy of the first 50 lines or so of the converted text file. 2. Consider the first few observations in this converted text file. Answer the following: i. Why might the page breaks (the long horizontal lines) be problematic when reading this data in SAS? Discuss. (2 pts) ii. Does it appear that the information for the 1 st place finisher, Elliot Heath, could be read into SAS successfully? Discuss. (2 pts) iii. Does it appear that the information for the 2 nd place finisher, Garrett Heath, could be read into SAS successfully? Discuss. (2 pts) iv. Notice that the widths of some of the columns in the PDF version are too narrow and thus some of the names and cities have been placed on two lines. If the width of these columns were properly adjusted (before making the PDF file), do you think the free Convert pdftotext program would work better? Explain your reasoning. (2 pts) 3. Download and open a copy of the Excel version of the cleaned data. Suppose your colleague decides to use the PROC IMPORT wizard to read in this dataset. Do you think this will work? Explain your reasoning. (4 pts) 1

2 4. Use the following code to read in the Text version of this dataset that was provided on our course website. DATA WORK.FOOLS5; INFILE 'D:\DATA\SAS\Fools5.txt' FIRSTOBS=16; INPUT Place / No / Name & $23. / Age / Sex $ / City & $16. / State $ / ChipTime TIME7. / GunTime TIME7. / Pace TIME7. / SexPlace / SexTotal / DivPlace / DivTotal ; a. Run a PROC CONTENTS for the data. (2 pts) Turn In: A copy of the PROC CONTENTS output. b. What is the purpose of the / in front of each variable in the INPUT statement? Does this code work with the /? Discuss. (2 pts) c. What is the purpose of the & in front of the in format statement for Name (i.e. Name & $23.)? If you don t know Google It! I just recently learned about this myself. (3 pts) 5. There are two different times recorded in this dataset, Gun Time and Chip Time. a. Use Google to identify the difference between Gun and Chip Time in a road race such as Fools Five. (2 pts) b. Similar to date variables, SAS stores time variable as the number of seconds from midnight. For example, 1:00:00 is considered 1:00:00AM and is stored by SAS as 3600 because there are 3600 seconds in an hour. Create a new variable called, GunChipDiff, which simply calculates the difference between the Chip Time and Gun Time. Verify that SAS correctly computed the difference between these two times for at least one observation in your dataset. (2 pt) GunChipDiff = GunTime - ChipTime; 2

3 c. Create a list (i.e. SAS printout) of the ten runners who have the largest difference between their Gun Time and Chip Time. What do these most extreme values imply about how these individuals started the race? (3 pts) Hint: I used the DESCENDING option in my PROC SORT statement to get the data in the appropriate order. Turn In: A print out of the ten runners who have the largest difference between their Chip and Gun Time. Assuming I did this correctly, your output should look as follows. d. A race director wants to ensure nobody s Chip Time is greater their Gun Time as this would mean they got a head start in the race. Verify for the race director that none of the Chip Time values are greater than the Gun Time. (2 pts) 6. Consider the following code. LAG Function DATA FOOLS5_1; SET FOOLS5; TimeLag = LAG(ChipTime); TimeDiff = ChipTime - TimeLag; DIF Function DATA FOOLS5_1; SET FOOLS5; TimeDiff = DIF(ChipTime); a. Run the code using the LAG function. What is the purpose the LAG function? What does the variable TimeDiff tell us about the race? (3 pts) Turn In: A printout of the first 10 observations with the variable TimeLag and TimeDiff printed. b. Consider the code using the LAG function. This code is redundant and assigning the result from LAG(ChipTime) to a variable is not necessary. Rewrite the LAG function code that eliminates this redundancy. (2 pts) 3

4 c. Run the code provided which uses the DIF function? What does the DIF function do for us? Is the outcome of interest here (i.e. TimeDiff) the same as the outcome when the LAG function? Why might the DIF function approach be considered more efficient? Discuss. (3 pts) 7. Consider the Awards file that is provided on our course website. Next, we will use our data to verify the awards and other outcomes from this race. To begin, suppose race organizers have decided to recognize the following runners. Top 10 Overall Finisher for Females Top 10 Overall Finisher for Males Top 3 Finishers for each Age Group / Sex combination o Sex: F=Femal, M=Male o Age Groups: 1 14, 15 19, 20 24, 25 29, 30 34, 35 39, 40 44, 45 49, 50 54, 55 59, 60 64, 65 69, 70+ a. Run the following code. Verify that this code correctly identifies the Top 10 Finishers for Females and Males. (2 pts). Turn In: A print out of the output from this code. SAS Code to Produce Top 10 Finishers for Females and Males DATA Female Male; SET FOOLS5; IF Sex = 'F' THEN OUTPUT Female; IF Sex = 'M' THEN OUTPUT Male; LABEL ChipTime='Race Time'; title 'Printout of Sex=F, Overall'; PROC SORT DATA=Female; DATA Female; SET Female; PROC PRINT DATA=Female LABEL NOOBS; WHERE Place <= 10; title 'Printout of Sex=M, Overall'; PROC SORT DATA=Male; DATA Male; SET Male; SAS Code with Line Numbers (see part b.) 1. DATA Female Male; 2. SET FOOLS5; 3. IF Sex = 'F' THEN OUTPUT Female; 4. IF Sex = 'M' THEN OUTPUT Male; 5. LABEL ChipTime='Race Time'; title 'Printout of Sex=F, Overall'; 8. PROC SORT DATA=Female; DATA Female; 12. SET Female; PROC PRINT DATA=Female LABEL NOOBS; WHERE Place <= 10; title 'Printout of Sex=M, Overall'; 21. PROC SORT DATA=Male; DATA Male; 25. SET Male; 26. 4

5 PROC PRINT DATA=Male LABEL NOOBS; WHERE Place <= 10; PROC PRINT DATA=Male LABEL NOOBS; WHERE Place <= 10; b. Next, consider the version of the code which contains the line number for each line. i. What is the purpose of Line #3 and Line #4? Explain what SAS is doing here. (3 pts). Again, don t know Google It! ii. What is the purpose of Line #13. How do I know this is a legitimate way of identifying the Place for each runner? Explain. (3 pts) 8. Carefully copy and paste the following code into SAS. This code assumes you have already created the Female and Male datasets from the code above. Run this code in SAS. SAS Code DATA FOOLS5_Version2; SET Female Male; IF Age=. THEN AgeGroup=.; ELSE IF Age < 15 THEN AgeGroup=1; ELSE IF Age > 14 AND Age < 20 THEN AgeGroup = 2; ELSE IF Age > 19 AND Age < 25 THEN AgeGroup = 3; ELSE IF Age > 24 AND Age < 30 THEN AgeGroup = 4; ELSE IF Age > 29 AND Age < 35 THEN AgeGroup = 5; ELSE IF Age > 34 AND Age < 40 THEN AgeGroup = 6; ELSE IF Age > 39 AND Age < 45 THEN AgeGroup = 7; ELSE IF Age > 44 AND Age < 50 THEN AgeGroup = 8; ELSE IF Age > 49 AND Age < 55 THEN AgeGroup = 9; ELSE IF Age > 54 AND Age < 60 THEN AgeGroup = 10; ELSE IF Age > 59 AND Age < 65 THEN AgeGroup = 11; ELSE IF Age > 64 AND Age < 70 THEN AgeGroup = 12; ELSE IF Age > 69 THEN AgeGroup = 13; LABEL AgeGroup='Age Group' ChipTime='Race Time'; DATA FemaleGroup1 FemaleGroup2 FemaleGroup3 FemaleGroup4 FemaleGroup5 FemaleGroup6 FemaleGroup7 FemaleGroup8 FemaleGroup9 FemaleGroup10 FemaleGroup11 FemaleGroup12 FemaleGroup13 MaleGroup1 MaleGroup2 MaleGroup3 MaleGroup4 MaleGroup5 MaleGroup6 MaleGroup7 MaleGroup8 MaleGroup9 MaleGroup10 MaleGroup11 MaleGroup12 MaleGroup13; SET FOOLS5_Version2; IF Sex = 'F' AND AgeGroup = 1 THEN OUTPUT FemaleGroup1; IF Sex = 'F' AND AgeGroup = 2 THEN OUTPUT FemaleGroup2; IF Sex = 'F' AND AgeGroup = 3 THEN OUTPUT FemaleGroup3; IF Sex = 'F' AND AgeGroup = 4 THEN OUTPUT FemaleGroup4; IF Sex = 'F' AND AgeGroup = 5 THEN OUTPUT FemaleGroup5; IF Sex = 'F' AND AgeGroup = 6 THEN OUTPUT FemaleGroup6; IF Sex = 'F' AND AgeGroup = 7 THEN OUTPUT FemaleGroup7; IF Sex = 'F' AND AgeGroup = 8 THEN OUTPUT FemaleGroup8; IF Sex = 'F' AND AgeGroup = 9 THEN OUTPUT FemaleGroup9; IF Sex = 'F' AND AgeGroup = 10 THEN OUTPUT FemaleGroup10; IF Sex = 'F' AND AgeGroup = 11 THEN OUTPUT FemaleGroup11; IF Sex = 'F' AND AgeGroup = 12 THEN OUTPUT FemaleGroup12; IF Sex = 'F' AND AgeGroup = 13 THEN OUTPUT FemaleGroup13; IF Sex = 'M' AND AgeGroup = 1 THEN OUTPUT MaleGroup1; IF Sex = 'M' AND AgeGroup = 2 THEN OUTPUT MaleGroup2; IF Sex = 'M' AND AgeGroup = 3 THEN OUTPUT MaleGroup3; IF Sex = 'M' AND AgeGroup = 4 THEN OUTPUT MaleGroup4; IF Sex = 'M' AND AgeGroup = 5 THEN OUTPUT MaleGroup5; IF Sex = 'M' AND AgeGroup = 6 THEN OUTPUT MaleGroup6; IF Sex = 'M' AND AgeGroup = 7 THEN OUTPUT MaleGroup7; IF Sex = 'M' AND AgeGroup = 8 THEN OUTPUT MaleGroup8; IF Sex = 'M' AND AgeGroup = 9 THEN OUTPUT MaleGroup9; IF Sex = 'M' AND AgeGroup = 10 THEN OUTPUT MaleGroup10; IF Sex = 'M' AND AgeGroup = 11 THEN OUTPUT MaleGroup11; IF Sex = 'M' AND AgeGroup = 12 THEN OUTPUT MaleGroup12; 5

6 IF Sex = 'M' AND AgeGroup = 13 THEN OUTPUT MaleGroup13; title 'Printout of Sex=F, AgeGroup=1-14'; PROC SORT DATA=FemaleGroup1; DATA FemaleGroup1; SET FemaleGroup1; PROC PRINT DATA=FemaleGroup1 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=15-19'; PROC SORT DATA=FemaleGroup2; DATA FemaleGroup2; SET FemaleGroup2; PROC PRINT DATA=FemaleGroup2 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=20-24'; PROC SORT DATA=FemaleGroup3; DATA FemaleGroup3; SET FemaleGroup3; PROC PRINT DATA=FemaleGroup3 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=25-29'; PROC SORT DATA=FemaleGroup4; DATA FemaleGroup4; SET FemaleGroup4; PROC PRINT DATA=FemaleGroup4 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=30-34'; PROC SORT DATA=FemaleGroup5; DATA FemaleGroup5; SET FemaleGroup5; PROC PRINT DATA=FemaleGroup5 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=35-39'; PROC SORT DATA=FemaleGroup6; DATA FemaleGroup6; SET FemaleGroup6; PROC PRINT DATA=FemaleGroup6 LABEL NOOBS; 6

7 title 'Printout of Sex=F, AgeGroup=40-44'; PROC SORT DATA=FemaleGroup7; DATA FemaleGroup7; SET FemaleGroup7; PROC PRINT DATA=FemaleGroup7 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=45-49'; PROC SORT DATA=FemaleGroup8; DATA FemaleGroup8; SET FemaleGroup8; PROC PRINT DATA=FemaleGroup8 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=50-54'; PROC SORT DATA=FemaleGroup9; DATA FemaleGroup9; SET FemaleGroup9; PROC PRINT DATA=FemaleGroup9 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=55-59'; PROC SORT DATA=FemaleGroup10; DATA FemaleGroup10; SET FemaleGroup10; PROC PRINT DATA=FemaleGroup10 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=60-64'; PROC SORT DATA=FemaleGroup11; DATA FemaleGroup11; SET FemaleGroup11; PROC PRINT DATA=FemaleGroup11 LABEL NOOBS; title 'Printout of Sex=F, AgeGroup=65-69'; PROC SORT DATA=FemaleGroup12; DATA FemaleGroup12; SET FemaleGroup12; PROC PRINT DATA=FemaleGroup12 LABEL NOOBS; 7

8 title 'Printout of Sex=F, AgeGroup= 70+'; PROC SORT DATA=FemaleGroup13; DATA FemaleGroup13; SET FemaleGroup13; PROC PRINT DATA=FemaleGroup13 LABEL NOOBS; a. What does this code produce? Explain. (2 pts) Turn In: A print out of the output from this code. b. What is the purpose of creating the dataset FOOLS5_Version2? Explain what this dataset contains that the Female and Male datasets do not contain. (2 pts) c. What is the purpose of the LABEL line in the DATA STEP for the FOOLS5_Version2 dataset? (2 pts) Hint: Remove the LABEL command in one of the PROC PRINT statements or run a PROC CONTENTS to help figure this out. d. Change the WHERE Place = 1 statement in each of the PROC PRINT statements so that the Top 3 Finishers for each Age Group are printed out. (3 pts) Comment: These individuals will be identified as the Ribbon Winners for each Age Group. Turn In: A print out of the Ribbon Winners for each Age Group. e. The output produced by our SAS code is *not* the same that is posted on the Fools Five website. For example, consider the top finishers for Age Group: Awards PDF File: SAS Printout From what I can tell, it appears that anybody that was a Top 10 Finisher cannot be considered a top finisher in their respective age group. For example, from the Awards document posted on their website, Fools Five identifies Lizzy Taggart as winner of this 8

9 Age Group and I assume this is because Tori Tyler was a Top 10 Overall Finisher for Females. Assuming this is the case, make modifications to the code provided to correctly identify the Ribbon Winners in each Age Group. Carefully explain the modifications were made. Verify that your modifications indeed work. (4 pts) Hint: I made modifications to the FOOLS5_Version2 dataset using an IF statement that involved the variable Place. Turn In: A discussion of the modifications made to the code. I do *not* need a printout of all the code. 9. Consider the following SAS code. You should determine the appropriate PROC SORT code and the appropriate PROC PRINT code to produce a *.html file that can easily be viewed on the web. The ODS statements provided will create the desired *.html files. DATA Results_Overall; SET Female Male; IF Place > 10 THEN DELETE; Partial SAS code for this problem DATA Results_AgeGroups; SET FemaleGroup1 FemaleGroup2 FemaleGroup3 FemaleGroup4 FemaleGroup5 FemaleGroup6 FemaleGroup7 FemaleGroup8 FemaleGroup9 FemaleGroup10 FemaleGroup11 FemaleGroup12 FemaleGroup13; IF Place > 3 THEN DELETE; PROC FORMAT; VALUE FAgeGroup 1 = 'Age: 1-14' 2 = 'Age: 15-19' 3 = 'Age: 20-24' 4 = 'Age: 25-29' 5 = 'Age: 30-34' 6 = 'Age: 35-39' 7 = 'Age: 40-44' 8 = 'Age: 45-49' 9 = 'Age: 50-54' 10 = 'Age: 55-59' 11 = 'Age: 60-64' 12 = 'Age: 65-69' 13 = 'Age: 70+ ' ; <PROC SORT CODE MISSING HERE> ODS HTML FILE='D:\DATA\SAS\Fools5_Awards.html'; title 'Top 10 Finishers'; PROC PRINT DATA=Results_Overall LABEL NOOBS; <PROC PRINT CODE MISSING HERE> title 'Ribbon Winners for Females by Age Group'; 9

10 PROC PRINT DATA=Results_AgeGroups NOOBS; <PROC PRINT CODE MISSING HERE> ODS HTML CLOSE; a. Add the appropriate PROC SORT and PROC PRINT code to obtain the desired output. (4 pts) Comment: Example output has been provided on our course website (i.e. my copy of my *.html file can be used as a guide I hope it is correct!). b. Consider the SET statement in the creation of the Results_AgeGroups dataset. What is this SET statement doing? Explain. (2 pts) c. What is the purpose of the PROC FORMAT statement? You should use FAgeGroup. Format in your code. (2 pts) 10. Suppose your colleague is the Race Director and likes how summarized all this information so efficiently. What code would have to change in order to summarize the data from Fools Five 2013? You can assume the format of the race (i.e. age groups, declaration of winners, etc.) will remain the same. Discuss. (4 pts) 10

11 Next, we will consider the BoxScore dataset that contains information from the 2012 NCAA Men s Basketball championship game between Kansas and Kentucky. The following the official boxscore from this game. (Link: Use PROC IMPORT to read in the Boxscore.xlsx dataset. Run a PROC CONTENTS on the Boxscore dataset to verify it was read in correctly. I have provided my version here for your reference. (2 pts) 11

12 The following code assumes this initial dataset is named Boxscore. The INDEX function is being used here to identify whether or not the KansasItem (or KentuckyItem) contains the word Foul. SAS Code to compute the total number of fouls for both teams. DATA Fouls; SET Boxscore; KansasFoul = 0; IF INDEX(KansasItem,"Foul")>0 THEN KansasFoul = 1; KentuckyFoul=0; IF INDEX(KentuckyItem,"Foul")>0 THEN KentuckyFoul=1; title 'Number of Fouls'; PROC MEANS DATA=Fouls SUM MAXDEC=0 NONOBS; VAR KansasFoul KentuckyFoul; Output from PROC MEANS 1. DATA Fouls; 2. SET Boxscore; 3. KansasFoul = 0; 4. IF INDEX(KansasItem,"Foul")>0 THEN KansasFoul = 1; 5. KentuckyFoul=0; 6. IF INDEX(KentuckyItem,"Foul")>0 THEN KentuckyFoul=1; title 'Number of Fouls'; 9. PROC MEANS DATA=Fouls SUM MAXDEC=0 NONOBS; 10. VAR KansasFoul KentuckyFoul; 11. PROC MEANS output matches the boxscore for PF (ie. personal foul) a. Line #3 and Line #4 are redundant. Remove Line #3 and fix Line #4 to fix this redundancy. Rerun the code to ensure it works. (3 pts) Turn In: You new Line #4 and a printout of the result from PROC MEANS. b. Modify the above code to obtain the number of personal fouls in each half for each team. (3 pts) Turn In: The result from PROC MEANS. c. Modify the above code to compute the one of the following. (3 pts) a. Number of Assists (denoted AST in the boxscore) b. Number of Steals (denoted STL in the boxsore) c. Number of Blocks (denoted BLK in the boxscore) Turn In: The result from PROC MEANS. 12

13 d. Repeat part c., but give a breakdown of what you computed for each half for each team. (2 pts) Turn In: The result from PROC MEANS. e. Modify the above code to compute the one of the following. (4 pts) a. The number of free throws made and attempted (denoted as FTM A in the boxscore) b. The number of three pointers made and attempted (denoted as 3PM A in the boxscore) c. The number of field goals made and attempted (denoted as FGM A in the boxscore). Turn In: The result from PROC MEANS. 12. Your friend believes that the task of computing the above summaries would be much easier if the KansasItems and KentuckyItems were put into a single column, named Boxscore Item, instead of having them in two separate columns. a. Consider the code that you have written above for any one of your summaries. How would you modify your code if the KansasItem and KentuckyItem were put into a single column? (4 pts) Comment: You do *not* need to run or turn in your modified code. A discussion explaining the modifications is sufficient here. b. If a single Boxscore Item column is created, will it be easier, harder, or about the same in terms of coding difficulty to obtain summaries for each half separately? Explain. (2 pts) c. If a single Boxscore Item column is created, how are you going to keep track of each team? Recall, it is important that the PROC MEANS output give a summary for each team. Discuss. (4 pts) 13

DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017

DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017 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,

More information

Distributions of Continuous Data

Distributions of Continuous Data C H A P T ER Distributions of Continuous Data New cars and trucks sold in the United States average about 28 highway miles per gallon (mpg) in 2010, up from about 24 mpg in 2004. Some of the improvement

More information

SAS Training Spring 2006

SAS 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 information

SAS is the most widely installed analytical tool on mainframes. I don t know the situation for midrange and PCs. My Focus for SAS Tools Here

SAS is the most widely installed analytical tool on mainframes. I don t know the situation for midrange and PCs. My Focus for SAS Tools Here Explore, Analyze, and Summarize Your Data with SAS Software: Selecting the Best Power Tool from a Rich Portfolio PhD SAS is the most widely installed analytical tool on mainframes. I don t know the situation

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O

Stat 302 Statistical Software and Its Applications SAS: Data I/O Stat 302 Statistical Software and Its Applications SAS: Data I/O Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 33 Getting Data Files Get the following data sets from the

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 February 19, 2015 2 Getting

More information

ERROR: ERROR: ERROR:

ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: Formatting Variables: Back and forth between character and numeric Why should you care? DATA name1; SET name; if var = Three then delete; if var = 3 the en delete; if var = 3 then

More information

Setting the Percentage in PROC TABULATE

Setting the Percentage in PROC TABULATE SESUG Paper 193-2017 Setting the Percentage in PROC TABULATE David Franklin, QuintilesIMS, Cambridge, MA ABSTRACT PROC TABULATE is a very powerful procedure which can do statistics and frequency counts

More information

A. Incorrect! This would be the negative of the range. B. Correct! The range is the maximum data value minus the minimum data value.

A. Incorrect! This would be the negative of the range. B. Correct! The range is the maximum data value minus the minimum data value. AP Statistics - Problem Drill 05: Measures of Variation No. 1 of 10 1. The range is calculated as. (A) The minimum data value minus the maximum data value. (B) The maximum data value minus the minimum

More information

work.test temp.test sasuser.test test

work.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 information

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes Brian E. Lawton Curriculum Research & Development Group University of Hawaii at Manoa Honolulu, HI December 2012 Copyright 2012

More information

CSC 221: Introduction to Programming. Fall 2013

CSC 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 information

Create a SAS Program to create the following files from the PREC2 sas data set created in LAB2.

Create a SAS Program to create the following files from the PREC2 sas data set created in LAB2. Topics: Data step Subsetting Concatenation and Merging Reference: Little SAS Book - Chapter 5, Section 3.6 and 2.2 Online documentation Exercise I LAB EXERCISE The following is a lab exercise to give you

More information

DSCI 325: Handout 15 Introduction to SAS Macro Programming Spring 2017

DSCI 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 information

INTRODUCTION to SAS STATISTICAL PACKAGE LAB 3

INTRODUCTION to SAS STATISTICAL PACKAGE LAB 3 Topics: Data step Subsetting Concatenation and Merging Reference: Little SAS Book - Chapter 5, Section 3.6 and 2.2 Online documentation Exercise I LAB EXERCISE The following is a lab exercise to give you

More information

PROC FORMAT. CMS SAS User Group Conference October 31, 2007 Dan Waldo

PROC FORMAT. CMS SAS User Group Conference October 31, 2007 Dan Waldo PROC FORMAT CMS SAS User Group Conference October 31, 2007 Dan Waldo 1 Today s topic: Three uses of formats 1. To improve the user-friendliness of printed results 2. To group like data values without affecting

More information

TOP 10 (OR MORE) WAYS TO OPTIMIZE YOUR SAS CODE

TOP 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 information

Using a Fillable PDF together with SAS for Questionnaire Data Donald Evans, US Department of the Treasury

Using a Fillable PDF together with SAS for Questionnaire Data Donald Evans, US Department of the Treasury Using a Fillable PDF together with SAS for Questionnaire Data Donald Evans, US Department of the Treasury Introduction The objective of this paper is to demonstrate how to use a fillable PDF to collect

More information

23.2 Normal Distributions

23.2 Normal Distributions 1_ Locker LESSON 23.2 Normal Distributions Common Core Math Standards The student is expected to: S-ID.4 Use the mean and standard deviation of a data set to fit it to a normal distribution and to estimate

More information

PDF Accessibility: How SAS 9.4M5 Enables Automatic Production of Accessible PDF Files

PDF Accessibility: How SAS 9.4M5 Enables Automatic Production of Accessible PDF Files Paper SAS2129-2018 PDF Accessibility: How SAS 9.4M5 Enables Automatic Production of Accessible PDF Files Woody Middleton, SAS Institute Inc., Cary, NC ABSTRACT No longer do you need to begin the accessibility

More information

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions

Introduction 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 information

EXAMPLE 2: INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT

EXAMPLE 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 information

Content-Based Assessments

Content-Based Assessments Content-Based Assessments GO! Fix It Project 1H Scholarships For Project 1H, you will need the following file: a01h_scholarships Lastname_Firstname_1H_Scholarships In this project, you will make corrections

More information

A Macro to replace PROC REPORT!?

A Macro to replace PROC REPORT!? Paper TS03 A Macro to replace PROC REPORT!? Katja Glass, Bayer Pharma AG, Berlin, Germany ABSTRACT Some companies have macros for everything. But is that really required? Our company even has a macro to

More information

Techdata Solution. SAS Analytics (Clinical/Finance/Banking)

Techdata Solution. SAS Analytics (Clinical/Finance/Banking) +91-9702066624 Techdata Solution Training - Staffing - Consulting Mumbai & Pune SAS Analytics (Clinical/Finance/Banking) What is SAS SAS (pronounced "sass", originally Statistical Analysis System) is an

More information

PROC MEANS for Disaggregating Statistics in SAS : One Input Data Set and One Output Data Set with Everything You Need

PROC MEANS for Disaggregating Statistics in SAS : One Input Data Set and One Output Data Set with Everything You Need ABSTRACT Paper PO 133 PROC MEANS for Disaggregating Statistics in SAS : One Input Data Set and One Output Data Set with Everything You Need Imelda C. Go, South Carolina Department of Education, Columbia,

More information

Working with Data in Windows and Descriptive Statistics

Working with Data in Windows and Descriptive Statistics Working with Data in Windows and Descriptive Statistics HRP223 Topic 2 October 3 rd, 2012 Copyright 1999-2012 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected

More information

Week 6, Week 7 and Week 8 Analyses of Variance

Week 6, Week 7 and Week 8 Analyses of Variance Week 6, Week 7 and Week 8 Analyses of Variance Robyn Crook - 2008 In the next few weeks we will look at analyses of variance. This is an information-heavy handout so take your time reading it, and don

More information

INTRODUCTION TO SPSS. Anne Schad Bergsaker 13. September 2018

INTRODUCTION TO SPSS. Anne Schad Bergsaker 13. September 2018 INTRODUCTION TO SPSS Anne Schad Bergsaker 13. September 2018 BEFORE WE BEGIN... LEARNING GOALS 1. Be familiar with and know how to navigate between the different windows in SPSS 2. Know how to write a

More information

An Introduction to Creating Multi- Sheet Microsoft Excel Workbooks the Easy Way with SAS

An Introduction to Creating Multi- Sheet Microsoft Excel Workbooks the Easy Way with SAS Copyright 2011 SAS Institute Inc. All rights reserved. An Introduction to Creating Multi- Sheet Microsoft Excel Workbooks the Easy Way with SAS Vince DelGobbo Web Tools Group, SAS Goals Integrate SAS output

More information

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions

Introduction 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 information

2. Don t forget semicolons and RUN statements The two most common programming errors.

2. Don t forget semicolons and RUN statements The two most common programming errors. Randy s SAS hints March 7, 2013 1. Always begin your programs with internal documentation. * ***************** * Program =test1, Randy Ellis, March 8, 2013 ***************; 2. Don t forget semicolons and

More information

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA SESUG 2012 Paper HW-01 Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA ABSTRACT Learning the basics of PROC REPORT can help the new SAS user avoid hours of headaches.

More information

Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project

Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project Data Content: Example: Who chats on-line most frequently? This Technology Use dataset in

More information

Chapter 6: Modifying and Combining Data Sets

Chapter 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 information

An Introduction to PROC REPORT

An 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 information

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order.

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order. Chapter 2 2.1 Descriptive Statistics A stem-and-leaf graph, also called a stemplot, allows for a nice overview of quantitative data without losing information on individual observations. It can be a good

More information

Lab #3: Probability, Simulations, Distributions:

Lab #3: Probability, Simulations, Distributions: Lab #3: Probability, Simulations, Distributions: A. Objectives: 1. Reading from an external file 2. Create contingency table 3. Simulate a probability distribution 4. The Uniform Distribution Reading from

More information

EXST SAS Lab Lab #8: More data step and t-tests

EXST SAS Lab Lab #8: More data step and t-tests EXST SAS Lab Lab #8: More data step and t-tests Objectives 1. Input a text file in column input 2. Output two data files from a single input 3. Modify datasets with a KEEP statement or option 4. Prepare

More information

3. Almost always use system options options compress =yes nocenter; /* mostly use */ options ps=9999 ls=200;

3. Almost always use system options options compress =yes nocenter; /* mostly use */ options ps=9999 ls=200; Randy s SAS hints, updated Feb 6, 2014 1. Always begin your programs with internal documentation. * ***************** * Program =test1, Randy Ellis, first version: March 8, 2013 ***************; 2. Don

More information

Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) Tips for Using Microsoft Excel and Exported Reports

Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) Tips for Using Microsoft Excel and Exported Reports Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) 1. Run a PROTECT Export report 2. Click the Export button which is at far left on the toolbar in the PROTECT report window. 3. The Export

More information

STAT 7000: Experimental Statistics I

STAT 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 information

Give me EVERYTHING! A macro to combine the CONTENTS procedure output and formats. Lynn Mullins, PPD, Cincinnati, Ohio

Give me EVERYTHING! A macro to combine the CONTENTS procedure output and formats. Lynn Mullins, PPD, Cincinnati, Ohio PharmaSUG 2014 - Paper CC43 Give me EVERYTHING! A macro to combine the CONTENTS procedure output and formats. Lynn Mullins, PPD, Cincinnati, Ohio ABSTRACT The PROC CONTENTS output displays SAS data set

More information

Reading data in SAS and Descriptive Statistics

Reading 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 information

100 THE NUANCES OF COMBINING MULTIPLE HOSPITAL DATA

100 THE NUANCES OF COMBINING MULTIPLE HOSPITAL DATA Paper 100 THE NUANCES OF COMBINING MULTIPLE HOSPITAL DATA Jontae Sanders, MPH, Charlotte Baker, DrPH, MPH, CPH, and C. Perry Brown, DrPH, MSPH, Florida Agricultural and Mechanical University ABSTRACT Hospital

More information

Checking whether the protocol was followed: gender and age 51

Checking whether the protocol was followed: gender and age 51 Checking whether the protocol was followed: gender and age 51 Session 4: Checking whether the protocol was followed: gender and age In the data cleaning workbook there are two worksheets which form the

More information

3D printing Is it Good Enough for Scale Model Boat Builders?

3D printing Is it Good Enough for Scale Model Boat Builders? Lew Zerfas Web Site: LewsModelBoats.org Email: info@lewsmodelboat.org Phone: 727-698-4400 a builder of scale model operating boats, including kits, highly modified kits, and scratch built models. A retired

More information

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide Paper 809-2017 Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide ABSTRACT Marje Fecht, Prowerk Consulting Whether you have been programming in SAS for years, are new to

More information

INTRODUCTION SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006)

INTRODUCTION SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006) INTRODUCTION To SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006) 1 Getting Started with SAS SAS stands for Statistical Analysis System. SAS is a computer software

More information

SC-15. An Annotated Guide: Using Proc Tabulate And Proc Summary to Validate SAS Code Russ Lavery, Contractor, Ardmore, PA

SC-15. An Annotated Guide: Using Proc Tabulate And Proc Summary to Validate SAS Code Russ Lavery, Contractor, Ardmore, PA SC-15 An Annotated Guide: Using Proc Tabulate And Proc Summary to Validate SAS Code Russ Lavery, Contractor, Ardmore, PA ABSTRACT This paper discusses how Proc Tabulate and Proc Summary can be used to

More information

ST Lab 1 - The basics of SAS

ST Lab 1 - The basics of SAS ST 512 - Lab 1 - The basics of SAS What is SAS? SAS is a programming language based in C. For the most part SAS works in procedures called proc s. For instance, to do a correlation analysis there is proc

More information

NOI 2012 TASKS OVERVIEW

NOI 2012 TASKS OVERVIEW NOI 2012 TASKS OVERVIEW Tasks Task 1: MODSUM Task 2: PANCAKE Task 3: FORENSIC Task 4: WALKING Notes: 1. Each task is worth 25 marks. 2. Each task will be tested on a few sets of input instances. Each set

More information

Chapter 2 Assignment (due Thursday, April 19)

Chapter 2 Assignment (due Thursday, April 19) (due Thursday, April 19) Introduction: The purpose of this assignment is to analyze data sets by creating histograms and scatterplots. You will use the STATDISK program for both. Therefore, you should

More information

From Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX

From 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 information

Stata version 13. First Session. January I- Launching and Exiting Stata Launching Stata Exiting Stata..

Stata version 13. First Session. January I- Launching and Exiting Stata Launching Stata Exiting Stata.. Stata version 13 January 2015 I- Launching and Exiting Stata... 1. Launching Stata... 2. Exiting Stata.. II - Toolbar, Menu bar and Windows.. 1. Toolbar Key.. 2. Menu bar Key..... 3. Windows..... III -...

More information

Chapter 2 Organizing and Graphing Data. 2.1 Organizing and Graphing Qualitative Data

Chapter 2 Organizing and Graphing Data. 2.1 Organizing and Graphing Qualitative Data Chapter 2 Organizing and Graphing Data 2.1 Organizing and Graphing Qualitative Data 2.2 Organizing and Graphing Quantitative Data 2.3 Stem-and-leaf Displays 2.4 Dotplots 2.1 Organizing and Graphing Qualitative

More information

PS2: LT2.4 6E.1-4 MEASURE OF CENTER MEASURES OF CENTER

PS2: LT2.4 6E.1-4 MEASURE OF CENTER MEASURES OF CENTER PS2: LT2.4 6E.1-4 MEASURE OF CENTER That s a mouthful MEASURES OF CENTER There are 3 measures of center that you are familiar with. We are going to use notation that may be unfamiliar, so pay attention.

More information

PHPM 672/677 Lab #2: Variables & Conditionals Due date: Submit by 11:59pm Monday 2/5 with Assignment 2

PHPM 672/677 Lab #2: Variables & Conditionals Due date: Submit by 11:59pm Monday 2/5 with Assignment 2 PHPM 672/677 Lab #2: Variables & Conditionals Due date: Submit by 11:59pm Monday 2/5 with Assignment 2 Overview Most assignments will have a companion lab to help you learn the task and should cover similar

More information

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables Jennie Murack You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables How to conduct basic descriptive statistics

More information

Reporting from Base SAS Tips & Tricks. Fareeza Khurshed BC Cancer Agency

Reporting from Base SAS Tips & Tricks. Fareeza Khurshed BC Cancer Agency Reporting from Base SAS Tips & Tricks Fareeza Khurshed BC Cancer Agency Overview Index for large data Summarizing Data Getting Data to Excel Index Think of book index or library catalogue or search function

More information

Arrays Made Easy: An Introduction to Arrays and Array Processing

Arrays Made Easy: An Introduction to Arrays and Array Processing Arrays Made Easy: An Introduction to Arrays and Array Processing 2nd Dimension SALE_ARRAY {r,1} {r,2} {r,3} {r,4} {r,12} 1st Dimension Sales {1,c} SALES1 SALES2 SALES3 SALES4 SALES12 Variables Expense

More information

Moving Data and Results Between SAS and Excel. Harry Droogendyk Stratia Consulting Inc.

Moving Data and Results Between SAS and Excel. Harry Droogendyk Stratia Consulting Inc. Moving Data and Results Between SAS and Excel Harry Droogendyk Stratia Consulting Inc. Introduction SAS can read ( and write ) anything Introduction In the end users want EVERYTHING in. Introduction SAS

More information

How to extract suicide statistics by country from the. WHO Mortality Database Online Tool

How to extract suicide statistics by country from the. WHO Mortality Database Online Tool Instructions for users How to extract suicide statistics by country from the WHO Mortality Database Online Tool This guide explains how to access suicide statistics and make graphs and tables, or export

More information

22S:166. Checking Values of Numeric Variables

22S:166. Checking Values of Numeric Variables 22S:1 Computing in Statistics Lecture 24 Nov. 2, 2016 1 Checking Values of Numeric Variables range checks when you know what the range of possible values is for a given quantitative variable internal consistency

More information

(c) What is the result of running the following program? x = 3 f = function (y){y+x} g = function (y){x =10; f(y)} g (7) Solution: The result is 10.

(c) What is the result of running the following program? x = 3 f = function (y){y+x} g = function (y){x =10; f(y)} g (7) Solution: The result is 10. Statistics 506 Exam 2 December 17, 2015 1. (a) Suppose that li is a list containing K arrays, each of which consists of distinct integers that lie between 1 and n. That is, for each k = 1,..., K, li[[k]]

More information

Congratulations. EPG Workshop

Congratulations. EPG Workshop Congratulations You have a clean data file. Open Ebert 1.0. Change the infile statement to read the data in AphidData1aT.csv. Change the ODS HTML file= statement to give the program a place to dump the

More information

6.001 Notes: Section 8.1

6.001 Notes: Section 8.1 6.001 Notes: Section 8.1 Slide 8.1.1 In this lecture we are going to introduce a new data type, specifically to deal with symbols. This may sound a bit odd, but if you step back, you may realize that everything

More information

In-class activities: Sep 25, 2017

In-class activities: Sep 25, 2017 In-class activities: Sep 25, 2017 Activities and group work this week function the same way as our previous activity. We recommend that you continue working with the same 3-person group. We suggest that

More information

Q1: Multiple choice / 20 Q2: C input/output; operators / 40 Q3: Conditional statements / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10

Q1: Multiple choice / 20 Q2: C input/output; operators / 40 Q3: Conditional statements / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10 EECE.2160: ECE Application Programming Spring 2016 Exam 1 February 19, 2016 Name: Section (circle 1): 201 (8-8:50, P. Li) 202 (12-12:50, M. Geiger) For this exam, you may use only one 8.5 x 11 double-sided

More information

Ten Great Reasons to Learn SAS Software's SQL Procedure

Ten Great Reasons to Learn SAS Software's SQL Procedure Ten Great Reasons to Learn SAS Software's SQL Procedure Kirk Paul Lafler, Software Intelligence Corporation ABSTRACT The SQL Procedure has so many great features for both end-users and programmers. It's

More information

Table of Contents. The RETAIN Statement. The LAG and DIF Functions. FIRST. and LAST. Temporary Variables. List of Programs.

Table of Contents. The RETAIN Statement. The LAG and DIF Functions. FIRST. and LAST. Temporary Variables. List of Programs. Table of Contents List of Programs Preface Acknowledgments ix xvii xix The RETAIN Statement Introduction 1 Demonstrating a DATA Step with and without a RETAIN Statement 1 Generating Sequential SUBJECT

More information

Something for Nothing! Converting Plots from SAS/GRAPH to ODS Graphics

Something for Nothing! Converting Plots from SAS/GRAPH to ODS Graphics ABSTRACT Paper 1610-2014 Something for Nothing! Converting Plots from SAS/GRAPH to ODS Graphics Philip R Holland, Holland Numerics Limited, UK All the documentation about the creation of graphs with SAS

More information

ssh tap sas913 sas

ssh tap sas913 sas Fall 2010, STAT 430 SAS Examples SAS9 ===================== ssh abc@glue.umd.edu tap sas913 sas https://www.statlab.umd.edu/sasdoc/sashtml/onldoc.htm a. Reading external files using INFILE and INPUT (Ch

More information

Six Cool Things You Can Do In Display Manager Jenine Milum, Charlotte, NC Wachovia Bank

Six Cool Things You Can Do In Display Manager Jenine Milum, Charlotte, NC Wachovia Bank Paper CC-029 Six Cool Things You Can Do In Display Manager Jenine Milum, Charlotte, NC Wachovia Bank ABSTRACT Many people use Display Manager but don t realize how much work it can actually do for you.

More information

Microsoft Excel PivotTables & PivotCharts

Microsoft Excel PivotTables & PivotCharts PivotTables PivotTables can be a powerful way to analyze data in Excel. As with all data functions in Excel, it is key that you have your data set up properly. Don't skip rows (just to make it look nice)

More information

I KNOW HOW TO PROGRAM IN SAS HOW DO I NAVIGATE SAS ENTERPRISE GUIDE?

I KNOW HOW TO PROGRAM IN SAS HOW DO I NAVIGATE SAS ENTERPRISE GUIDE? Paper HOW-068 A SAS Programmer s Guide to the SAS Enterprise Guide Marje Fecht, Prowerk Consulting LLC, Cape Coral, FL Rupinder Dhillon, Dhillon Consulting Inc., Toronto, ON, Canada ABSTRACT You have been

More information

Lecture Notes 3: Data summarization

Lecture 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 information

CHAPTER 2 DESCRIPTIVE STATISTICS

CHAPTER 2 DESCRIPTIVE STATISTICS CHAPTER 2 DESCRIPTIVE STATISTICS 1. Stem-and-Leaf Graphs, Line Graphs, and Bar Graphs The distribution of data is how the data is spread or distributed over the range of the data values. This is one of

More information

7/18/16. Review. Review of Homework. Lecture 3: Programming Statistics in R. Questions from last lecture? Problems with Stata? Problems with Excel?

7/18/16. Review. Review of Homework. Lecture 3: Programming Statistics in R. Questions from last lecture? Problems with Stata? Problems with Excel? Lecture 3: Programming Statistics in R Christopher S. Hollenbeak, PhD Jane R. Schubart, PhD The Outcomes Research Toolbox Review Questions from last lecture? Problems with Stata? Problems with Excel? 2

More information

Lab 3 (80 pts.) - Assessing the Normality of Data Objectives: Creating and Interpreting Normal Quantile Plots

Lab 3 (80 pts.) - Assessing the Normality of Data Objectives: Creating and Interpreting Normal Quantile Plots STAT 350 (Spring 2015) Lab 3: SAS Solutions 1 Lab 3 (80 pts.) - Assessing the Normality of Data Objectives: Creating and Interpreting Normal Quantile Plots Note: The data sets are not included in the solutions;

More information

CSCI 111 First Midterm Exam Spring Solutions 09.05am 09.55am, Wednesday, March 14, 2018

CSCI 111 First Midterm Exam Spring Solutions 09.05am 09.55am, Wednesday, March 14, 2018 QUEENS COLLEGE Department of Computer Science CSCI 111 First Midterm Exam Spring 2018 03.14.18 Solutions 09.05am 09.55am, Wednesday, March 14, 2018 Problem 1 Write a complete C++ program that asks the

More information

%ANYTL: A Versatile Table/Listing Macro

%ANYTL: A Versatile Table/Listing Macro Paper AD09-2009 %ANYTL: A Versatile Table/Listing Macro Yang Chen, Forest Research Institute, Jersey City, NJ ABSTRACT Unlike traditional table macros, %ANTL has only 3 macro parameters which correspond

More information

An Animated Guide: Proc Transpose

An Animated Guide: Proc Transpose ABSTRACT An Animated Guide: Proc Transpose Russell Lavery, Independent Consultant If one can think about a SAS data set as being made up of columns and rows one can say Proc Transpose flips the columns

More information

PharmaSUG Paper TT11

PharmaSUG Paper TT11 PharmaSUG 2014 - Paper TT11 What is the Definition of Global On-Demand Reporting within the Pharmaceutical Industry? Eric Kammer, Novartis Pharmaceuticals Corporation, East Hanover, NJ ABSTRACT It is not

More information

Microsoft Office 2010: Introductory Q&As Access Chapter 3

Microsoft Office 2010: Introductory Q&As Access Chapter 3 Microsoft Office 2010: Introductory Q&As Access Chapter 3 Is the form automatically saved the way the report was created when I used the Report Wizard? (AC 142) No. You will need to take specific actions

More information

USING SAS SOFTWARE TO COMPARE STRINGS OF VOLSERS IN A JCL JOB AND A TSO CLIST

USING SAS SOFTWARE TO COMPARE STRINGS OF VOLSERS IN A JCL JOB AND A TSO CLIST USING SAS SOFTWARE TO COMPARE STRINGS OF VOLSERS IN A JCL JOB AND A TSO CLIST RANDALL M NICHOLS, Mississippi Dept of ITS, Jackson, MS ABSTRACT The TRANSLATE function of SAS can be used to strip out punctuation

More information

Cover the Basics, Tool for structuring data checking with SAS Ole Zester, Novo Nordisk, Denmark

Cover the Basics, Tool for structuring data checking with SAS Ole Zester, Novo Nordisk, Denmark ABSTRACT PharmaSUG 2014 - Paper IB04 Cover the Basics, Tool for structuring data checking with SAS Ole Zester, Novo Nordisk, Denmark Data Cleaning and checking are essential parts of the Stat programmer

More information

EXAM - A Clinical Trials Programming Using SAS 9 Accelerated Version. Buy Full Product.

EXAM - A Clinical Trials Programming Using SAS 9 Accelerated Version. Buy Full Product. SAS-Institute EXAM - A00-281 Clinical Trials Programming Using SAS 9 Accelerated Version Buy Full Product http://www.examskey.com/a00-281.html Examskey SAS-Institute A00-281 exam demo product is here for

More information

Prof. Dr. A. Podelski, Sommersemester 2017 Dr. B. Westphal. Softwaretechnik/Software Engineering

Prof. Dr. A. Podelski, Sommersemester 2017 Dr. B. Westphal. Softwaretechnik/Software Engineering Prof. Dr. A. Podelski, Sommersemester 2017 Dr. B. Westphal Softwaretechnik/Software Engineering http://swt.informatik.uni-freiburg.de/teaching/ss2017/swtvl Exercise Sheet 6 Early submission: Wednesday,

More information

2013 RunSignUp, LLC 407 Chester Avenue Moorestown, NJ (888)

2013 RunSignUp, LLC 407 Chester Avenue Moorestown, NJ (888) Within this document you will find detailed instructions regarding the participant reports available on www.runsignup.com. This manual covers topics for race directors, and is intended to make your experience

More information

Ditch the Data Memo: Using Macro Variables and Outer Union Corresponding in PROC SQL to Create Data Set Summary Tables Andrea Shane MDRC, Oakland, CA

Ditch the Data Memo: Using Macro Variables and Outer Union Corresponding in PROC SQL to Create Data Set Summary Tables Andrea Shane MDRC, Oakland, CA ABSTRACT Ditch the Data Memo: Using Macro Variables and Outer Union Corresponding in PROC SQL to Create Data Set Summary Tables Andrea Shane MDRC, Oakland, CA Data set documentation is essential to good

More information

Repetition Through Recursion

Repetition Through Recursion Fundamentals of Computer Science I (CS151.02 2007S) Repetition Through Recursion Summary: In many algorithms, you want to do things again and again and again. For example, you might want to do something

More information

Hey there, I m (name) and today I m gonna talk to you about rate of change and slope.

Hey there, I m (name) and today I m gonna talk to you about rate of change and slope. Rate and Change of Slope A1711 Activity Introduction Hey there, I m (name) and today I m gonna talk to you about rate of change and slope. Slope is the steepness of a line and is represented by the letter

More information

Chicago Area Orienteering Club. Race Day Instructions for Sport Software

Chicago Area Orienteering Club. Race Day Instructions for Sport Software Chicago Area Orienteering Club Race Day Instructions for Sport Software Introduction This guide is for use by Meet Directors and Course Setters from the Chicago Area Orienteering Club (CAOC) to prepare

More information

Don t Forget About SMALL Data

Don t Forget About SMALL Data Don t Forget About SMALL Data Lisa Eckler Lisa Eckler Consulting Inc. September 25, 2015 Outline Why does Small Data matter? Defining Small Data Where to look for it How to use it examples What else might

More information

Informer Procedures November 8, 2009

Informer Procedures November 8, 2009 Informer Procedures November 8, 2009 procmanual_informer.docx 1 09 Nov 8 Introduction 3 Informer User Groups and Security... 4 Entrinsik Informer: External Resources... 5 Informer Report Tags... 6 Report

More information

15-110: Principles of Computing, Spring 2018

15-110: Principles of Computing, Spring 2018 5-: Principles of Computing, Spring 28 Problem Set 8 (PS8) Due: Friday, March 3 by 2:3PM via Gradescope Hand-in HANDIN INSTRUCTIONS Download a copy of this PDF file. You have two ways to fill in your answers:.

More information

Database Management System Prof. D. Janakiram Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.

Database Management System Prof. D. Janakiram Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. Database Management System Prof. D. Janakiram Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 20 Concurrency Control Part -1 Foundations for concurrency

More information

Section 6.3: Measures of Position

Section 6.3: Measures of Position Section 6.3: Measures of Position Measures of position are numbers showing the location of data values relative to the other values within a data set. They can be used to compare values from different

More information

Lesson 6: Modeling Basics

Lesson 6: Modeling Basics Lesson 6: Modeling Basics MyEducator Issues? So you did everything and received a zero Make sure you don t change the file name If you have done work in Filename(2) or Filename-2 Happens when you download

More information