Tabulating Patients, Admissions and Length-of-Stay By Dx Category, Fiscal Year, County and Age Group
|
|
- Garry Dorsey
- 6 years ago
- Views:
Transcription
1 Tabulating Patients, Admissions and Length-of-Stay By Dx Category, Fiscal Year, County and Age Group Step One: Extracting Data Use an array in a data step to search all the Dx Codes in one pass. The array creates a variable with n levels so you can search through a list of different variables with one command. data dataset1; set datalib.phrudata; length flag1 flag2 $ 1; Write extracted data to dataset1 Read data from datalib.phrudata Initialize flags for each relevant Dx Category flag1 = ; flag2 = ; array name{n} var1-varn; do i = 1 to n; if name{i} = dxcode1 then flag1= 1 ; if name{i} = dxcode2 then flag2= 1 ; if flag1 ne or flag2 ne ; Define name, number of elements and variables in the array Loop through each element in the array Search the array for a particular Dx Code and flag records where it appears If you are searching for multiple Dx Codes, use multiple flags to avoid overwriting flags for other relevant Dx Codes on the same record End loop Keep flagged records Keep in mind that although you are searching through n variables, they are all on the same record. Also note that the flag will only tell you that the record contains at least one occurrence of the relevant Dx Code, not how many times that Dx Code appears on the record. Step Two: Creating Categorical Variables Age Group: proc format; value agegrpf 1= = high= 85+ ; Create a format for the age groups to be defined later The 18-high statement means any value from 18 up The format procedure must immediately follow the libname statements and come before any other procedures or data steps
2 age=int((sepdate-dob)/365.25); agegrp=int((age/5) + 1); format agegrp agegrpf.; Age is not a reliable variable, and should be calculated from the date of birth and separation date fields This is a shortcut for calculating 5-year age groups. The number you divide by determines the groupings Format the agegrp variable with the agegrpf. format. Note the required period at the end of the format Step Three: Summarizing the Data To count unique patients per fiscal year and calculate the mean number of admissions or LOS per patient, it is necessary to do some preliminary preparation of the data. Essentially, rather than a dataset of all admissions, you end up with a summarized dataset of one record per patient per year with cumulative admissions and length-of-stay. proc sort; by msi fy; data file2; set file1; by msi fy; length patients admits totlos 3; if first.msi or first.fy then do; admits=1; totlos=los; else do; admits+1; totlos+los; if last.msi or last.fy; patients=1; Sort the data by patient and fiscal year Use the BY statement to set up the FIRST. and LAST. function* Define numeric variables If patient s first admission in FY Initialize cumulative admissions counter Initialize total LOS to LOS of first admission If subsequent admission in FY Add 1 to cumulative admissions counter Add LOS to cumulative LOS Keep last summary record for each FY Count unique patients * The FIRST. and LAST. function creates a marker on the first and last occurrences of each unique value of a variable. MSI Marker FY Marker 01 first 89 first last first 01 last 90 last 02 first 89 first last 02 last 91 first, last 03 first, last 89 first, last
3 Step Four: Tabulating the Data There are two options for tabulating and outputting the data: the means procedure and the tabulate procedure. The Means procedure is straightforward, but is most useful when you have a limited number of dimensions you want to present. The Tabulate is more useful when you are trying to present data in several dimensions (eg. by procedures by year, sex, age group and county). This procedure usually requires a little trial-and-error programming but can usually produce decent results. Proc Means: proc means sum mean; Select the statistics you want proc means to present title1 Title of Table ; title2 Title Subheading ; class fy sex agegrp; var patients admits totlos; Use the CLASS statement to select the categories by which you want the data presented Specify which variables you want in the output. Using the data preparation outlined earlier, this procedure will present the number of unique patients (N & ΣPATIENTS), total and mean admissions per patient (ΣADMITS, MEAN ADMISSIONS) and total and mean length-of-stay per patient (Σ LOS, MEAN LOS). Disregard the mean patients statistic as it has no useful meaning. Proc Tabulate: proc tabulate; title1 Title of Table ; title2 Title Subheading ; class fy county sex agegrp; var patients admits totlos; tables fy*(county all), Define your categories Define your variables The TABLES statement defines the presentation of your data. The commas separate the dimensions of your tables. With 2 dimensions, comma separates the vertical from the horizontal dimension. With 3 dimensions, the first comma separates pages and the second comma separates vertical and horizontal dimensions on the page. This line will generate a tabulation with one page per fiscal year per county with the last page of each fy tabulating all counties for that fy.
4 (sex all= M&F )*(age all= All Ages ), patients*sum*f=comma8. admits*(sum*f=comma8. mean*f=8.2) totlos*(sum*f=comma8. mean*f=8.2) / box=_page_ RTS=50; This line generates the vertical dimension of the table, with sex by age group and a summary of all ages for each age group and combined sex by age group. Sum of patients in 8 column comma format Sum and mean admissions Sum and mean of total LOS per patient Places page heading in the left-hand corner of the table Optional. This controls the number of columns allocated to the vertical category titles. It usually requires a little trial and error to get it to look right. Proc Tabulate gives you much more control over how you want the data presented. This is particularly useful when you are trying to condense data into the fewest pages.
5 The Full Program: /* Program to extract Hypertension admissions from CIHI95 */ options ls=90 ps=78 SASAUTOS= macro library ; libname library [project directory] ; libname datalib [data directory] ; proc format; value agegrp 1= /* Create age group format */ 2= high= 85+ ; data hyper95; /* Write extracted data to hyper95 */ set datalib.cihi95; /* Read data from CIHI95 */ length flag1 flag2 $ 1; flag = ; /* Initialize Flag */ array dxcodes{10} dxcode1-dxcode10; /* Define array as dxcode1-10 */ do i = 1 to 10; /* Repeat loop 16 times */ if dxcodes{i} =: 401 then flag= 1 ; /* Flag records with 401 code */ /* End loop */ if flag = 1 ; /* Keep flagged records */ {Repeat this datastep for each year you are interested in} data combined; /* Combine data from all years */ set hyper95 hyper94 ; /* Read all hyper datasets */ proc sort; /* Note, Procedures default to last written dataset */ by msi fy; /* Sort data by MSI and FY */ continued
6 data sumhyper; set combined; by msi fy; /* Create FIRST. and LAST. identifiers for MSI & FY */ length patients admits totlos 3; /* Define numeric variables */ if first.msi or first.fy then do; /* Summarize admissions and LOS by FY */ admits=1; totlos=los; else do; admits+1; totlos+los; if last.msi or last.fy; /* Keep summary record */ patients=1; /* Count patients */ proc means sum mean; /* Output data with proc means */ title1 Hypertension Patients, Admissions & Length-of-Stay ; title2 by Fiscal Year, County, Sex & Age Group ; class fy sex agegrp; var patients admits totlos; proc tabulate; /* Output data with proc tabulate */ title1 Hypertension Patients, Admissions & Length-of-Stay ; title2 by Fiscal Year, County, Sex & Age Group ; class fy county sex agegrp; var patients admits los; tables fy*(county all), /* Page */ (sex all= M&F )*(age all= All Ages ), /* Vertical Dimension */ patients*sum*f=comma8. /* Horizontal Dimension */ admits*sum*f=comma8. totlos*(sum*f=comma8. mean*f=8.2) / box=_page_ RTS=50;
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 informationRemove this where. statement to produce the. report on the right with all 4 regions. Retain this where. statement to produce the
Problem 4, Chapter 14, Ex. 2. Using the SAS sales data set, create the report shown in the text. Note: The report shown in the text for this question, contains only East & West region data. However, the
More information3. 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 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 informationUsing Proc Freq for Manageable Data Summarization
1 CC27 Using Proc Freq for Manageable Data Summarization Curtis Wolf, DataCeutics, Inc. A SIMPLE BUT POWERFUL PROC The Frequency procedure can be very useful for getting a general sense of the contents
More informationChristopher Toppe, Ph.D. Computer Sciences Corporation
An Introduction to PROC TABULATE: A Hands-On Workshop Christopher Toppe, Ph.D. Computer Sciences Corporation Abstract The Tabulate procedure is, along with PROC REPORT, one of the most powerful and difficult
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 information2. 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 informationSC-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 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 informationThere s No Such Thing as Normal Clinical Trials Data, or Is There? Daphne Ewing, Octagon Research Solutions, Inc., Wayne, PA
Paper HW04 There s No Such Thing as Normal Clinical Trials Data, or Is There? Daphne Ewing, Octagon Research Solutions, Inc., Wayne, PA ABSTRACT Clinical Trials data comes in all shapes and sizes depending
More information%MAKE_IT_COUNT: An Example Macro for Dynamic Table Programming Britney Gilbert, Juniper Tree Consulting, Porter, Oklahoma
Britney Gilbert, Juniper Tree Consulting, Porter, Oklahoma ABSTRACT Today there is more pressure on programmers to deliver summary outputs faster without sacrificing quality. By using just a few programming
More informationUsing PROC SQL to Calculate FIRSTOBS David C. Tabano, Kaiser Permanente, Denver, CO
Using PROC SQL to Calculate FIRSTOBS David C. Tabano, Kaiser Permanente, Denver, CO ABSTRACT The power of SAS programming can at times be greatly improved using PROC SQL statements for formatting and manipulating
More informationIntroduction to Stata Toy Program #1 Basic Descriptives
Introduction to Stata 2018-19 Toy Program #1 Basic Descriptives Summary The goal of this toy program is to get you in and out of a Stata session and, along the way, produce some descriptive statistics.
More information22S: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 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 Programs SAS Lecture 4 Procedures. Aidan McDermott, April 18, Outline. Internal SAS formats. SAS Formats
SAS Programs SAS Lecture 4 Procedures Aidan McDermott, April 18, 2006 A SAS program is in an imperative language consisting of statements. Each statement ends in a semi-colon. Programs consist of (at least)
More informationA Cross-national Comparison Using Stacked Data
A Cross-national Comparison Using Stacked Data Goal In this exercise, we combine household- and person-level files across countries to run a regression estimating the usual hours of the working-aged civilian
More informationGetting 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 informationTable 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 informationI Launching and Exiting Stata. Stata will ask you if you would like to check for updates. Update now or later, your choice.
I Launching and Exiting Stata 1. Launching Stata Stata can be launched in either of two ways: 1) in the stata program, click on the stata application; or 2) double click on the short cut that you have
More informationDSCI 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 informationTYPES OF VARIABLES, STRUCTURE OF DATASETS, AND BASIC STATA LAYOUT
PRIMER FOR ACS OUTCOMES RESEARCH COURSE: TYPES OF VARIABLES, STRUCTURE OF DATASETS, AND BASIC STATA LAYOUT STEP 1: Install STATA statistical software. STEP 2: Read through this primer and complete the
More informationValidation Summary using SYSINFO
Validation Summary using SYSINFO Srinivas Vanam Mahipal Vanam Shravani Vanam Percept Pharma Services, Bridgewater, NJ ABSTRACT This paper presents a macro that produces a Validation Summary using SYSINFO
More informationIntroduction to SAS Mike Zdeb ( , #1
Mike Zdeb (402-6479, msz03@albany.edu) #1 (10) REARRANGING DATA If you want to conduct an analysis across observations in a data set, you can use SAS procedures. If you want to conduct an analysis within
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 informationPaper An Automated Reporting Macro to Create Cell Index An Enhanced Revisit. Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA
ABSTRACT Paper 236-28 An Automated Reporting Macro to Create Cell Index An Enhanced Revisit When generating tables from SAS PROC TABULATE or PROC REPORT to summarize data, sometimes it is necessary to
More informationSAS Macros for Grouping Count and Its Application to Enhance Your Reports
SAS Macros for Grouping Count and Its Application to Enhance Your Reports Shi-Tao Yeh, EDP Contract Services, Bala Cynwyd, PA ABSTRACT This paper provides two SAS macros, one for one grouping variable,
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 informationIntroduction to SAS Mike Zdeb ( , #61
Mike Zdeb (402-6479, msz03@albany.edu) #61 FORMAT, you can design informats for reading and interpreting non-standard data, and you can design formats for displaying data in non-standard ways....example
More informationEXAMPLE 3: MATCHING DATA FROM RESPONDENTS AT 2 OR MORE WAVES (LONG FORMAT)
EXAMPLE 3: MATCHING DATA FROM RESPONDENTS AT 2 OR MORE WAVES (LONG FORMAT) DESCRIPTION: This example shows how to combine the data on respondents from the first two waves of Understanding Society into
More informationUsing 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 informationProcedure for Stamping Source File Information on SAS Output Elizabeth Molloy & Breda O'Connor, ICON Clinical Research
Procedure for Stamping Source File Information on SAS Output Elizabeth Molloy & Breda O'Connor, ICON Clinical Research ABSTRACT In the course of producing a report for a clinical trial numerous drafts
More informationBIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA
BIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA Learning objectives: Getting data ready for analysis: 1) Learn several methods of exploring the
More informationUsing PROC REPORT to Cross-Tabulate Multiple Response Items Patrick Thornton, SRI International, Menlo Park, CA
Using PROC REPORT to Cross-Tabulate Multiple Response Items Patrick Thornton, SRI International, Menlo Park, CA ABSTRACT This paper describes for an intermediate SAS user the use of PROC REPORT to create
More informationPart B. EpiData Analysis
Part B. EpiData Analysis Part B: EpiData Analysis Exercise 1 An introduction to EpiData Analysis Exercise 2 More on EpiData Analysis Exercise 3 Aggregating data and saving the summary data in a file Exercise
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 informationA 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 informationZIPpy Safe Harbor De-Identification Macros
ZIPpy Safe Harbor De-Identification Macros SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates
More informationIntegrated MS-DRG Grouper & Calculator Printable How To Guide
Integrated MS-DRG Grouper & Calculator Printable How To Guide MediRegs provides an integrated MS-DRG Grouper & Calculator that demonstrates MS-DRG grouping and payment under the Inpatient Prospective Payment
More informationUsing PROC SQL to Generate Shift Tables More Efficiently
ABSTRACT SESUG Paper 218-2018 Using PROC SQL to Generate Shift Tables More Efficiently Jenna Cody, IQVIA Shift tables display the change in the frequency of subjects across specified categories from baseline
More informationPOLICY. Create a governance process to manage requests to extract de- identified data from the Information Exchange (IE).
Academic Health Center Office of Biomedical Health Informatics POLICY Extraction of De- Identifiable Data from the Information Exchange Approved Proposal Purpose Create a governance process to manage requests
More informationClean Claim Edits UB04
Provider s name, address and telephone number Clean Claim Edits UB04 1 Yes Reject Reject if blank or if address is not a physical address (PO BOX, Lock BOX, etc is not valid). 9 Digit billing provider
More informationEXAMPLE 3: MATCHING DATA FROM RESPONDENTS AT 2 OR MORE WAVES (LONG FORMAT)
EXAMPLE 3: MATCHING DATA FROM RESPONDENTS AT 2 OR MORE WAVES (LONG FORMAT) DESCRIPTION: This example shows how to combine the data on respondents from the first two waves of Understanding Society into
More informationMaintaining Formats when Exporting Data from SAS into Microsoft Excel
Maintaining Formats when Exporting Data from SAS into Microsoft Excel Nate Derby & Colleen McGahan Stakana Analytics, Seattle, WA BC Cancer Agency, Vancouver, BC Club des Utilisateurs SAS de Québec 11/1/16
More informationProducing Summary Tables in SAS Enterprise Guide
Producing Summary Tables in SAS Enterprise Guide Lora D. Delwiche, University of California, Davis, CA Susan J. Slaughter, Avocet Solutions, Davis, CA ABSTRACT This paper shows, step-by-step, how to 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 informationStata 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 informationPharmaSUG Paper AD06
PharmaSUG 2012 - Paper AD06 A SAS Tool to Allocate and Randomize Samples to Illumina Microarray Chips Huanying Qin, Baylor Institute of Immunology Research, Dallas, TX Greg Stanek, STEEEP Analytics, Baylor
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 informationSelect the desired program, then the report and click the View Report button. The FSS Dashboard will appear as 87 NJ2024_FSS_DB_MenuPage.
Introduction The NJ2024 FSS Dashboard is a quarterly report covering a wide variety of metrics that relate to the FSS population. (NJ2024 is the reference number assigned to this report.) The report will
More informationMatt Downs and Heidi Christ-Schmidt Statistics Collaborative, Inc., Washington, D.C.
Paper 82-25 Dynamic data set selection and project management using SAS 6.12 and the Windows NT 4.0 file system Matt Downs and Heidi Christ-Schmidt Statistics Collaborative, Inc., Washington, D.C. ABSTRACT
More information0.1 Stata Program 50 /********-*********-*********-*********-*********-*********-*********/ 31 /* Obtain Data - Populate Source Folder */
0.1 Stata Program 1 capture log close master // suppress error and close any open logs 2 log using RDC3-master, name(master) replace text 3 // program: RDC3-master.do 4 // task: Demonstrate basic Stata
More informationA SAS Macro for Balancing a Weighted Sample
Paper 258-25 A SAS Macro for Balancing a Weighted Sample David Izrael, David C. Hoaglin, and Michael P. Battaglia Abt Associates Inc., Cambridge, Massachusetts Abstract It is often desirable to adjust
More informationFormat-o-matic: Using Formats To Merge Data From Multiple Sources
SESUG Paper 134-2017 Format-o-matic: Using Formats To Merge Data From Multiple Sources Marcus Maher, Ipsos Public Affairs; Joe Matise, NORC at the University of Chicago ABSTRACT User-defined formats are
More informationOpen Problem for SUAVe User Group Meeting, November 26, 2013 (UVic)
Open Problem for SUAVe User Group Meeting, November 26, 2013 (UVic) Background The data in a SAS dataset is organized into variables and observations, which equate to rows and columns. While the order
More informationChaining Logic in One Data Step Libing Shi, Ginny Rego Blue Cross Blue Shield of Massachusetts, Boston, MA
Chaining Logic in One Data Step Libing Shi, Ginny Rego Blue Cross Blue Shield of Massachusetts, Boston, MA ABSTRACT Event dates stored in multiple rows pose many challenges that have typically been resolved
More informationGet Started Writing SAS Macros Luisa Hartman, Jane Liao, Merck Sharp & Dohme Corp.
Get Started Writing SAS Macros Luisa Hartman, Jane Liao, Merck Sharp & Dohme Corp. ABSTRACT The SAS Macro Facility is a tool which lends flexibility to your SAS code and promotes easier maintenance. It
More informationThis document contains confidential information that is proprietary to SonoSite. Neither the document nor the information contained therein should be
This document contains confidential information that is proprietary to SonoSite. Neither the document nor the information contained therein should be disclosed or reproduced in whole or in part, without
More informationCreate 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 informationIntermediate SAS: Statistics
Intermediate SAS: Statistics OIT TSS 293-4444 oithelp@mail.wvu.edu oit.wvu.edu/training/classmat/sas/ Table of Contents Procedures... 2 Two-sample t-test:... 2 Paired differences t-test:... 2 Chi Square
More informationIntroduction to STATA
Introduction to STATA Duah Dwomoh, MPhil School of Public Health, University of Ghana, Accra July 2016 International Workshop on Impact Evaluation of Population, Health and Nutrition Programs Learning
More informationDSCI 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 informationWeek 1: Introduction to Stata
Week 1: Introduction to Stata Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ALL RIGHTS RESERVED 1 Outline Log
More informationGroup Administrator. ebills csv file formatting by class level. User Guide
Group Administrator ebills csv file formatting by class level User Guide Version 1.0 February 10, 2015 Table of Content Excel automated template... 3 Enable Macro setting in Microsoft Excel... 3 Extracting
More informationCIGNA Encounter Error Correction. Web-based Portal Training Prnlink.com, INC
CIGNA Encounter Error Correction Web-based Portal Training Prnlink.com, INC Registration Please email mbramasco@prnlink.com for pre-registration. All attendees will be registered following this presentation.
More informationGETTING DATA INTO THE PROGRAM
GETTING DATA INTO THE PROGRAM 1. Have a Stata dta dataset. Go to File then Open. OR Type use pathname in the command line. 2. Using a SAS or SPSS dataset. Use Stat Transfer. (Note: do not become dependent
More informationUnit-of-Analysis Programming Vanessa Hayden, Fidelity Investments, Boston, MA
Unit-of-Analysis Programming Vanessa Hayden, Fidelity Investments, Boston, MA ABSTRACT There are many possible ways to organize your data, but some ways are more amenable to end-reporting and analysis
More informationOpening a Data File in SPSS. Defining Variables in SPSS
Opening a Data File in SPSS To open an existing SPSS file: 1. Click File Open Data. Go to the appropriate directory and find the name of the appropriate file. SPSS defaults to opening SPSS data files with
More informationExcel Introduction to Excel Databases & Data Tables
Creating an Excel Database Key field: Each record should have some field(s) that helps to uniquely identify them, put these fields at the start of your database. In an Excel database each column is a field
More information%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 informationContents of SAS Programming Techniques
Contents of SAS Programming Techniques Chapter 1 About SAS 1.1 Introduction 1.1.1 SAS modules 1.1.2 SAS module classification 1.1.3 SAS features 1.1.4 Three levels of SAS techniques 1.1.5 Chapter goal
More informationLocal Lab Normal Range Management Tool (LNMT) Site Job Aid for Late Stage Development
Supporting Document 600-GDMS040-005 Local Lab Normal Range Management Tool (LNMT) Site Job Aid for Late Stage Development Version 1.0 Revision History Version Effective Date Revised by Changes 1 01-Jan-2012
More informationCommon File System Commands
Common File System Commands ls! List names of all files in current directory ls filenames! List only the named files ls -t! List in time order, most recent first ls -l! Long listing, more information.
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 informationPROC SUMMARY AND PROC FORMAT: A WINNING COMBINATION
PROC SUMMARY AND PROC FORMAT: A WINNING COMBINATION Alan Dickson - Consultant Introduction: Is this scenario at all familiar to you? Your users want a report with multiple levels of subtotals and grand
More informationMultivariate probability distributions
Multivariate probability distributions September, 07 STAT 0 Class Slide Outline of Topics Background Discrete bivariate distribution 3 Continuous bivariate distribution STAT 0 Class Slide Multivariate
More informationssh 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 informationSD10 A SAS MACRO FOR PERFORMING BACKWARD SELECTION IN PROC SURVEYREG
Paper SD10 A SAS MACRO FOR PERFORMING BACKWARD SELECTION IN PROC SURVEYREG Qixuan Chen, University of Michigan, Ann Arbor, MI Brenda Gillespie, University of Michigan, Ann Arbor, MI ABSTRACT This paper
More informationAutomating Descriptive Statistics
Automating Descriptive Statistics Cheng.Cong@cra-arc.gc.ca Presented at Ottawa Area SAS User Society (OASUS) November 23, 2017 1 Disclaimer The vis expressed in this presentation are the personal views
More informationIntroduction (SPSS) Opening SPSS Start All Programs SPSS Inc SPSS 21. SPSS Menus
Introduction (SPSS) SPSS is the acronym of Statistical Package for the Social Sciences. SPSS is one of the most popular statistical packages which can perform highly complex data manipulation and analysis
More informationReport Writing, SAS/GRAPH Creation, and Output Verification using SAS/ASSIST Matthew J. Becker, ST TPROBE, inc., Ann Arbor, MI
Report Writing, SAS/GRAPH Creation, and Output Verification using SAS/ASSIST Matthew J. Becker, ST TPROBE, inc., Ann Arbor, MI Abstract Since the release of SAS/ASSIST, SAS has given users more flexibility
More informationBar Charts and Frequency Distributions
Bar Charts and Frequency Distributions Use to display the distribution of categorical (nominal or ordinal) variables. For the continuous (numeric) variables, see the page Histograms, Descriptive Stats
More informationApril 4, SAS General Introduction
PP 105 Spring 01-02 April 4, 2002 SAS General Introduction TA: Kanda Naknoi kanda@stanford.edu Stanford University provides UNIX computing resources for its academic community on the Leland Systems, which
More informationPROC 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 informationCreating New Variables in JMP Datasets Using Formulas Exercises
Creating New Variables in JMP Datasets Using Formulas Exercises Exercise 3 Calculate the Difference of Two Columns 1. This Exercise will use the data table Cholesterol. This data table contains the following
More informationINTRODUCTION 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 informationUsing a Control Dataset to Manage Production Compiled Macro Library Curtis E. Reid, Bureau of Labor Statistics, Washington, DC
AP06 Using a Control Dataset to Manage Production Compiled Macro Library Curtis E. Reid, Bureau of Labor Statistics, Washington, DC ABSTRACT By default, SAS compiles and stores all macros into the WORK
More informationPaper SAS Programming Conventions Lois Levin, Independent Consultant, Bethesda, Maryland
Paper 241-28 SAS Programming Conventions Lois Levin, Independent Consultant, Bethesda, Maryland ABSTRACT This paper presents a set of programming conventions and guidelines that can be considered in developing
More informationSAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Module 2
SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Department of MathemaGcs and StaGsGcs Phone: 4-3620 Office: Parker 364- A E- mail: carpedm@auburn.edu Web: hup://www.auburn.edu/~carpedm/stat6110
More informationGive 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 informationNPDA User Guide: Submitting your data via CSV
NPDA User Guide: Submitting your data via CSV Contents Before you start... 1 CSV Submission Preparation... 1 Submitting your CSV... 3 Checking your CSV has been submitted... 6 Reviewing the Data Quality
More informationERROR: 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 informationWhat you learned so far. Loops & Arrays efficiency for statements while statements. Assignment Plan. Required Reading. Objective 2/3/2018
Loops & Arrays efficiency for statements while statements Hye-Chung Kum Population Informatics Research Group http://pinformatics.org/ License: Data Science in the Health Domain by Hye-Chung Kum is licensed
More informationSAS Programming Conventions Lois Levin, Independent Consultant
SAS Programming Conventions Lois Levin, Independent Consultant INTRODUCTION This paper presents a set of programming conventions and guidelines that can be considered in developing code to ensure that
More informationChapters 18, 19, 20 Solutions. Page 1 of 14. Demographics from COLLEGE Data Set
18.2 proc tabulate data=learn.college format=7.; class schoolsize gender scholarship; table schoolsize ALL, gender scholarship ALL; n = ' '; Demographics from COLLEGE Data Set ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
More informationTips & Tricks. With lots of help from other SUG and SUGI presenters. SAS HUG Meeting, November 18, 2010
Tips & Tricks With lots of help from other SUG and SUGI presenters 1 SAS HUG Meeting, November 18, 2010 2 3 Sorting Threads Multi-threading available if your computer has more than one processor (CPU)
More informationWHO Child Growth Standards SPSS Syntax File (igrowup_dhsind.sps)
WHO Child Growth Standards SPSS Syntax File (igrowup_dhsind.sps) The package igrowup_spss_dhsind.zip contains the following items: 1. The syntax file igrowup_dhsind.sps 2. Five permanent (read-only) SPSS
More informationA Side of Hash for You To Dig Into
A Side of Hash for You To Dig Into Shan Ali Rasul, Indigo Books & Music Inc, Toronto, Ontario, Canada. ABSTRACT Within the realm of Customer Relationship Management (CRM) there is always a need for segmenting
More information