How to Go From SAS Data Sets to DATA NULL or WordPerfect Tables Anne Horney, Cooperative Studies Program Coordinating Center, Perry Point, Maryland
|
|
- Oscar Little
- 5 years ago
- Views:
Transcription
1 How to Go From SAS Data Sets to DATA NULL or WordPerfect Tables Anne Horney, Cooperative Studies Program Coordinating Center, Perry Point, Maryland ABSTRACT Clinical trials data reports often contain many tables produced on a recurring basis, and a way is needed to move information from SAS procedures into publication quality tables without spending hours transferring and checking numbers. Combining output values from several procedures into one table or page of a report is often necessary. The data values/information can be calculated using several methods such as PROC FREQ, PROC MEANS, and DATA steps. The table can be created using PUT statements or the data can be written to a delimited ASCII file that can be merged into word processing or spreadsheet packages. An example of a report table created by both DATA _NULL_ and WordPerfect will be shown. INTRODUCTION The goal is to produce a table that describes a continuous variable (Age) and two categorical variables (Gender and Marital Status) by treatment group. As is so often the case in SAS programming, there is more than one way to accomplish the task. SAS procedures and DATA step programming will be used to show some ways to meet the goal. Statistics for the continuous variable will be n, mean, standard deviation and the probability of no difference between treatment groups; for the discrete variables statistics will be n, percent-of-group, and probability of no difference between groups. Our sample data set form1 contains five variables: Id Subject identifier Treatmnt Treatment A or B Age Subject's age in years Gender 1=male, 2=female MarStat 1=never married, 2=married, 3=divorced/widowed The 51 observations have been sorted by treatment group; none of the data are missing. Assume the formats gender. and marital. exist. STEP ONE - CALCULATING THE STATISTICS N, MEAN, AND STANDARD DEVIATION USING PROC MEANS One method of calculating statistics such as means and standard deviations is to use the procedure PROC MEANS, which can create an output data set containing the calculated values. The output data set is named in the OUTPUT statement; the desired statistics are requested and named. When the CLASS statement is used, the data set contains statistics for each value of the class variable (here, treatmnt) and for the total sample. The data step AGEA changes the value of treatmnt for the total sample from ' ' (missing) to 'C' so that the data can be sorted to put the total last. proc means data=form1; class treatmnt; var age; output out=age n=n_age mean=m_age std=s_age; data agea; set age; if treatmnt=' ' then treatmnt='c'; keep treatmnt n_age m_age s_age; proc sort; by treatmnt; N AND PERCENT USING ARRAYS IN A DATA STEP The number occurrences of each category of a discrete variable and percentages are calculated in a DATA step. An array is defined for each categorical variable of interest. The array GEN will be used to sum the occurrences of 1(male) and 2(female) for each treatment group and overall; likewise, MARITAL will hold the marital status counts. For each two-dimensional array the rows are the categories and the columns are the treatment groups. The percentages will be calculated later in the DATA _NULL_ step. data counts(keep=gen1-gen9 mar1-mar12); set form1 end=eof; *columns: Treament A, B, total; *Rows: Male, Female, Total; array gen{3,3} gen1-gen9; *Rows: Nvr Married,Married,Divorced,total; array marital{4,3} mar1-mar12; retain gen1-gen9 mar1-mar12 0; if treatmnt='a' then trt=1; if treatmnt='b' then trt=2; if gender in (1,2) then do; gen{gender,trt}+1; gen{gender,3}+1; *row total; gen{3,trt}+1; *column total; gen{3,3}+1; *overall total; if 1 le marstat le 3 then do; marital{marstat,trt}+1; marital{marstat,3}+1; *row total; marital{4,trt}+1; *column tot; marital{4,3}+1; *overall tot; if eof then output;
2 T-TEST P-VALUE USING ANOVA PROCEDURE Since the TTEST procedure does not have an OUTPUT option, the ANOVA procedure, which calculates the equivalent probability value is used. proc anova data=form1 outstat=p_age; class treatmnt; model age=treatmnt; CHI-SQUARE PROBABILITY USING PROC FREQ Counts and percentages, as well as chi-square probabilities, for discrete variables can be obtained by use of the procedure FREQ along with the procedure s two types of output statements. For this example only the chi-square probabilities are be used. Proc freq data=form1; table gender*treatmnt /chisq; output out=cgender(keep=p_pchi) chisq; proc freq data=form1; table marstat*treatmnt /chisq; output out=cmarital(keep=p_pchi) chisq; STEP TWO - PRODUCING THE TABLE METHOD ONE: DATA _NULL_ AND PUT The table is produced in a DATA _NULL_ step by bring the pieces together and using the PUT statement to write out the data in tabular form. data _null_; set agea(in=ina ) counts(in=inc); array gen{3,3} gen1-gen9; array marital{4,3} mar1-mar12; retain col 0; file print header=h1; *Age*; if ina then do; col+17; if treatmnt='a' then put 'Age n_age m_age s_age if treatmnt='c' then do; set p_age (where=(_type_='anova')); prob 5.3; if inc then do; Demographic Information by Treatment Group Treatment Group A B Total Demographic Information N Mean S.D. N Mean S.D. N Mean S.D. probability Age (years) N % N % N % probability Gender Male Female Marital Status Single Married Divorced Figure 1
3 *Gender*; put 'N 'N 'N 'probability' ' ' ' ' '; 'Gender'; do row=1 to 2; row col=2; col=col+17; if gen{3,rx} gt 0 then pc=gen{row,rx}/gen{3,rx} * 100; gen{row,rx} pc set cgender; p_pchi 5.3; *Marital Status*; put 'Marital Status'; do row=1 to 3; row col=2; col=col+17; if marital{4,rx} gt 0 then pc=marital{row,rx}/marital{4,rx} * 100; marital{row,rx} pc set cmarital; p_pchi 5.3; return; h1: title 'Demographic Information by' 'Treatment Group'; put 'Treatment Group' 'Total' 'Demographic' ' N Mean ' N Mean ' N Mean 'probability' ' ' ' ' ' '; METHOD TWO: WORDPERFECT The Data And Safety Monitoring Board Reports produced by the Cooperative Studies Program Coordinating Center include many pages of tables. The reports are prepared semiannually for the duration of the study. A way was needed to move information from SAS outputs into publication quality tables without spending hours transferring and checking numbers and repeating the process again in six months. We used SAS and WordPerfect to produce the necessary report tables with a minimum of manual intervention. Examples of report tables and of the data and WordPerfect macros that produced them will be displayed. INFORMATION The first step is to determine what information is to appear in the table. Design the table in WordPerfect as a merge form file (see Figure 2). Decide on title lines, contents and placement of columns and rows, and labeling. The form file will be a combination of text and merge codes. The text entries will remain constant. Put the merge code FIELD in each location where text and/or numeric data will be inserted from the merge data file. These fields are consecutively numbered. Information can be merged into titles, and headers and footers, as well as table cells. The merge data file is an ASCII file created in SAS. The macro RENUMBER can be used to number the fields. Put the tilde symbol "~" in the document where you want a merge field code. The macro will insert the field codes numbered appropriately. It can also be used to renumber the fields if the table is changed. ASCII DELIMITED TEXT FILE The information that will be merged into the table must be put into an ASCII delimited text file, the data file. Entries must be placed in the file in the same order as the field numbers in the form file. This is done with SAS PUT statements. The delimiters can be any characters you choose. (WordPerfect uses a comma as the default field delimiter and [CR][LF] as the default record delimiter.) If you plan to use the merge command from the menu or merge bar there must be a record delimiter after the last record. If you plan to merge the table using a WordPerfect macro, omit the record delimiter after the last record. For both methods, separate multiple records with delimiters. The example is for use with a macro. data _null_; set agea(in=ina ) counts(in=inc); array gen{3,3} gen1-gen9; array marital{4,3} mar1-mar12; file 'c:\nesug01\table1.dat'; *Age*; if ina then do; put n_age :2. '*' m_age :4.1 '*,' s_age :4.1 '*'@;
4 if treatmnt='c' then do; set p_age(where=(_type_='anova')); put prob :5.3 '*'; if inc then do; *Gender*; do row=1 to 2; if gen{3,rx} gt 0 then pc=gen{row,rx}/gen{3,rx} * 100; put gen{row,rx} :2. '*' pc 5.1 set cgender; put p_pchi :5.3 '*'; else put; *Marital Status*; do row=1 to 3; if marital{4,rx} gt 0 then pc=marital{row,rx}/marital{4,rx} * 100; put marital{row,rx} :2. '*' pc 5.1 set cmarital; put p_pchi :5.3 '*'; else put; Sample data file: 25 *34.7 *9.1 *26 *33.9 *8.5 *51 *34.3 *8.7 *0.736 * 14 *56.0 *14 *53.8 *28 *54.9 *0.877 * 11 *44.0 *12 *46.2 *23 *45.1 * 7 *28.0 *5 *19.2 *12 *23.5 *0.558 * 10 *40.0 *9 *34.6 *19 *37.3 * 8 *32.0 *12 *46.2 *20 *39.2 * WORDPERFECT TABLE The study table (see Figure 3), containing the desired information in the desired format, is achieved by merging the ASCII data file into the WordPerfect form file using the WordPerfect Merge command. Whenever the study data change, a new data file can be prepared and merged into the form file... yielding a relatively quick and painless revised study table. TABLE MACRO WordPerfect macros are used to automate the merging process. For each table a macro is written containing all the statements required to produce the finished version of the table from a form file and a data file. The WordPerfect macro merges the form with the data and saves the resulting table as a WordPerfect document. Demographic Information by Treatment Group Treatment Group Demographic Information A B Total N Mean S.D. N Mean S.D. N Mean S.D. Probability Age(years) FIELD(1) FIELD(2) FIELD(3) FIELD(4) FIELD(5) FIELD(6) FIELD(7) FIELD(8) FIELD(9) FIELD(10) N % N % N % Gender Male FIELD(11) FIELD(12) FIELD(13) FIELD(14) FIELD(15) FIELD(16) FIELD(17) Female FIELD(18) FIELD(19) FIELD(20) FIELD(21) FIELD(22) FIELD(23) Marital Status Single FIELD(24) FIELD(25) FIELD(26) FIELD(27) FIELD(28) FIELD(29) FIELD(30) Married FIELD(31) FIELD(32) FIELD(33) FIELD(34) FIELD(35) FIELD(36) Divorced FIELD(37) FIELD(38) FIELD(39) FIELD(40) FIELD(41) FIELD(42) Figure 2. WordPerfect Form File
5 REPORT MACRO Carrying this a giant step forward, a WordPerfect Report macro, has been written to produce the final report. First the Report macro runs each individual table macro (the command is NEST) and creates a WordPerfect file for each table. Next the Report macro inserts each table in the correct order into a single large document. Also, the macro can issue additional WordPerfect commands, such as headers, footers, and page numbers, to bring the final document into its desired form. CONCLUSION Using DATA step arrays and/or output data sets from SAS procedures will require some extra programming steps. The time is well spent, though, when you compare the programming time to the alternative of hand-transcribing, checking, checking again, and verifying that the correct numbers from the appropriate SAS output listings have been put in the correct destination slots. We prepare the study report by running SAS programs to prepare the data files and by playing one WordPerfect macro. Thus we have eliminated time-consuming and error-prone repetitive transcribing and checking. ACKNOWLEDGMENTS The author wishes to thank Gail Kirk for her contributions to this paper. SAS is a registered trademark or trademark of SAS Institute Inc.. WordPerfect is a registered trademark of Corel Corporation Limited, in the USA and other countries. indicates USA registration. CONTACT INFORMATION Anne Horney CSPCC (151E) VA Medical Center P. O. Box 1010 Perry Point, MD ext rebecca.horney@med.va.gov The WordPerfect macros were written for WordPerfect version 7. Some changes to the macros may be required for other versions. The SAS programs were written for Version 6.12, they will also work with version 8. Demographic Information by Treatment Group Treatment Group Demographic Information A B Total N Mean S.D. N Mean S.D. N Mean S.D. Probability Age(years) N % N % N % Gender Male Female Marital Status Single Married Divorced Figure 3. WordPerfect Table
6 Renumber Macro //Description: RENUMBER renumber all fields PosDocVeryTop SearchString ("[MRG: FIELD]") ReplaceString ("~") ReplaceForward (Extended!) PosDocVeryTop () ForNext(LP;1;3;1) ForNext(num; 0; 9; 1) PosDocTop ReplaceConfirm(No!) SearchString("~"+num) ReplaceString("~") ReplaceForward(Extended!) ENDFOR ENDFOR PosDocVeryTop () ASSIGN(NUM; "0") LABEL ASSIGN(NUM; NUM+1) OnNotFound(labelb) SearchString ("~") SearchNext (Extended!) SelectMode (Off!) MergeCode (Field!; NUM) LABEL(labelb) PosDocVeryTop SearchString ("~") ReplaceString ("") ReplaceForward (Extended!) beep PosDocVeryTop Table Macro //table1 Application (A1; "WordPerfect"; Default; "US") //names of the merge form file, merge data file, //resulting merged document CONSTANT( vform: = "c:\nesug01\table1.frm"; vdata: = "c:\nesug01\table1.dat"; vtable: = "c:\nesug01\table1.wpd") //Data file ImportSetFileName (vdata) ImportSetSource (ASCII!) ImportSetDestination (MergeData!) //Field Delimiter - macro uses * as the field delimiter // can be changed ImportSetAsciiFieldDelimiter ("*") //Record Delimiter - macro does not use a record //delimiter can be changed ImportSetAsciiRecordDelimiter ("") //Hard returns are removed from the data file before //merging into the form file //if you don't want hard returns deleted from the ascii //file - delete the text between the quotes in //(StripChars: "[SRt][HRt]") ImportSetAsciiStrip (StripChars: "[SRt][HRt]") //text strings are surrounded by "" // can be changed ImportSetAsciiEncap (EncapsulationChar: """") //convert data file to a merge file and copy to //clipboard ViewDraft () ImportDoImport () PosDocTop () SelectDocBottom () EditCopy () Close (No!) //do the merge MergeSelect (All!) //form file name, data file source, location of merged //document MergeRun (FormFile!; vform;datafiletype: Clipboard!; OutputFileType: ToNewDoc!) //name of the document containing the merged table FileSave(vTable;WordPerfect_60!) Close
7 Report Macro Application (A1; "WordPerfect"; Default; "US") PERSISTALL DEFAULTUNITS(Inches!) VARERRCHK(OFF!) DISPLAY(Off!) //play macro to create table Table1 NEST("C:\nesug01\Table1") //play macro to create table Table2 NEST("C:\nesug01\Table2") //play macro to create table Table3 NEST("C:\nesug01\Table3") //play macro to create table Table4 NEST("C:\nesug01\Table4") //Assemble report //insert cover sheet FileInsert("C:\nesug01\DSMB.WPD"; //insert Table of Contents FileInsert("C:\nesug01\DSMBCONT.WPD") //discontinue the header that is used in the Table of // Contents HeaderA(Off!) //put page numbers on bottom of pages, starting with page 1 PageNumberPosition (Position: BottomCenter!; Default: DontUseDefaultValues!) PageNumberMethod(Numbers!) PageNumber(1) //insert the table Table1 -file created by macro // Table1 FileInsert("C:\nesug01\Table1.WPD" ; //insert the table Table2 - file created by macro // Table2 FileInsert("C:\nesug01\ Table2.WPD"; //insert the table Table3 - file created by macro // Table3 FileInsert("C:\nesug01\Table3.WPD"; //insert the table Table4 - file created by macro // Table4 FileInsert("C:\nesug01\Table4.WPD";
Automating the Production of Clinical Trial Data Tables
Automating the Production of Clinical Trial Data Tables Anne Horney and Gail F. Kirk Cooperative Studies Coordinating Center VA Medical Center, Perry Point, Maryland ABSTRACT Preparation of clinical trials
More informationGenerating Customized Analytical Reports from SAS Procedure Output Brinda Bhaskar and Kennan Murray, RTI International
Abstract Generating Customized Analytical Reports from SAS Procedure Output Brinda Bhaskar and Kennan Murray, RTI International SAS has many powerful features, including MACRO facilities, procedures such
More informationI AlB 1 C 1 D ~~~ I I ; -j-----; ;--i--;--j- ;- j--; AlB
PROC TABULATE: CONTROLLNG TABLE APPEARANCE August V. Treff Baltimore City Public Schools Office of Research and Evaluation ABSTRACT Proc Tabulate provides one, two, and three dimensional tables. Tables
More information186 Statistics, Data Analysis and Modeling. Proceedings of MWSUG '95
A Statistical Analysis Macro Library in SAS Carl R. Haske, Ph.D., STATPROBE, nc., Ann Arbor, M Vivienne Ward, M.S., STATPROBE, nc., Ann Arbor, M ABSTRACT Statistical analysis plays a major role in pharmaceutical
More informationA SAS Macro for Producing Data Summary Tables
A SAS Macro for Producing Data Summary Tables Yajie Wang, Lan Zhao, Surai Thaneemit-Chen, Vaishali Krishnan, Galina Shamayeva and Bob Edson VA Palo Alto Health Care System, Menlo Park, CA ABSTRACT The
More informationGet into the Groove with %SYSFUNC: Generalizing SAS Macros with Conditionally Executed Code
Get into the Groove with %SYSFUNC: Generalizing SAS Macros with Conditionally Executed Code Kathy Hardis Fraeman, United BioSource Corporation, Bethesda, MD ABSTRACT %SYSFUNC was originally developed in
More information- 1 - Fig. A5.1 Missing value analysis dialog box
WEB APPENDIX Sarstedt, M. & Mooi, E. (2019). A concise guide to market research. The process, data, and methods using SPSS (3 rd ed.). Heidelberg: Springer. Missing Value Analysis and Multiple Imputation
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 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 informationWant to Do a Better Job? - Select Appropriate Statistical Analysis in Healthcare Research
Want to Do a Better Job? - Select Appropriate Statistical Analysis in Healthcare Research Liping Huang, Center for Home Care Policy and Research, Visiting Nurse Service of New York, NY, NY ABSTRACT The
More informationAssessing superiority/futility in a clinical trial: from multiplicity to simplicity with SAS
PharmaSUG2010 Paper SP10 Assessing superiority/futility in a clinical trial: from multiplicity to simplicity with SAS Phil d Almada, Duke Clinical Research Institute (DCRI), Durham, NC Laura Aberle, Duke
More informationAn Algorithm to Compute Exact Power of an Unordered RxC Contingency Table
NESUG 27 An Algorithm to Compute Eact Power of an Unordered RC Contingency Table Vivek Pradhan, Cytel Inc., Cambridge, MA Stian Lydersen, Department of Cancer Research and Molecular Medicine, Norwegian
More informationDitch 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 informationCreate Custom Tables in No Time
PASW Custom Tables 18 Create Custom Tables in No Time Easily analyze data and communicate your results with PASW Custom Tables Show the results of analyses clearly and quickly You often report the results
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 informationMapping Clinical Data to a Standard Structure: A Table Driven Approach
ABSTRACT Paper AD15 Mapping Clinical Data to a Standard Structure: A Table Driven Approach Nancy Brucken, i3 Statprobe, Ann Arbor, MI Paul Slagle, i3 Statprobe, Ann Arbor, MI Clinical Research Organizations
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 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 informationAre you Still Afraid of Using Arrays? Let s Explore their Advantages
Paper CT07 Are you Still Afraid of Using Arrays? Let s Explore their Advantages Vladyslav Khudov, Experis Clinical, Kharkiv, Ukraine ABSTRACT At first glance, arrays in SAS seem to be a complicated and
More information1. Introduction to Microsoft Excel
1. Introduction to Microsoft Excel A spreadsheet is an online version of an accountant's worksheet, which can automatically do most of the calculating for you. You can do budgets, analyze data, or generate
More informationUsing SAS Macros to Extract P-values from PROC FREQ
SESUG 2016 ABSTRACT Paper CC-232 Using SAS Macros to Extract P-values from PROC FREQ Rachel Straney, University of Central Florida This paper shows how to leverage the SAS Macro Facility with PROC FREQ
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 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 informationA Breeze through SAS options to Enter a Zero-filled row Kajal Tahiliani, ICON Clinical Research, Warrington, PA
ABSTRACT: A Breeze through SAS options to Enter a Zero-filled row Kajal Tahiliani, ICON Clinical Research, Warrington, PA Programmers often need to summarize data into tables as per template. But study
More informationA Lazy Programmer s Macro for Descriptive Statistics Tables
Paper SA19-2011 A Lazy Programmer s Macro for Descriptive Statistics Tables Matthew C. Fenchel, M.S., Cincinnati Children s Hospital Medical Center, Cincinnati, OH Gary L. McPhail, M.D., Cincinnati Children
More informationUsing SAS Macro to Include Statistics Output in Clinical Trial Summary Table
Using SAS Macro to Include Statistics Output in Clinical Trial Summary Table Amy C. Young, Ischemia Research and Education Foundation, San Francisco, CA Sharon X. Zhou, Ischemia Research and Education
More informationExam Questions A00-281
Exam Questions A00-281 SAS Certified Clinical Trials Programmer Using SAS 9 Accelerated Version https://www.2passeasy.com/dumps/a00-281/ 1.Given the following data at WORK DEMO: Which SAS program prints
More informationSetting 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 informationStatistics and Data Analysis. Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment
Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment Huei-Ling Chen, Merck & Co., Inc., Rahway, NJ Aiming Yang, Merck & Co., Inc., Rahway, NJ ABSTRACT Four pitfalls are commonly
More informationNCSS Statistical Software. Design Generator
Chapter 268 Introduction This program generates factorial, repeated measures, and split-plots designs with up to ten factors. The design is placed in the current database. Crossed Factors Two factors are
More informationBiostat Methods STAT 5820/6910 Handout #4: Chi-square, Fisher s, and McNemar s Tests
Biostat Methods STAT 5820/6910 Handout #4: Chi-square, Fisher s, and McNemar s Tests Example 1: 152 patients were randomly assigned to 4 dose groups in a clinical study. During the course of the study,
More informationLAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA
LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA This lab will assist you in learning how to summarize and display categorical and quantitative data in StatCrunch. In particular, you will learn how to
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 informationStat 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 informationSummary Table for Displaying Results of a Logistic Regression Analysis
PharmaSUG 2018 - Paper EP-23 Summary Table for Displaying Results of a Logistic Regression Analysis Lori S. Parsons, ICON Clinical Research, Medical Affairs Statistical Analysis ABSTRACT When performing
More informationLet SAS Write and Execute Your Data-Driven SAS Code
Let SAS Write and Execute Your Data-Driven SAS Code Kathy Hardis Fraeman, United BioSource Corporation, Bethesda, MD ABSTRACT Some SAS programming statements are based on specific values of data, such
More informationKANRI DISTANCE CALCULATOR. User Guide v2.4.9
KANRI DISTANCE CALCULATOR User Guide v2.4.9 KANRI DISTANCE CALCULATORTM FLOW Participants Input File Correlation Distance Type? Generate Target Profile General Target Define Target Profile Calculate Off-Target
More informationStat 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%Addval: A SAS Macro Which Completes the Cartesian Product of Dataset Observations for All Values of a Selected Set of Variables
%Addval: A SAS Macro Which Completes the Cartesian Product of Dataset Observations for All Values of a Selected Set of Variables Rich Schiefelbein, PRA International, Lenexa, KS ABSTRACT It is often useful
More informationThe results section of a clinicaltrials.gov file is divided into discrete parts, each of which includes nested series of data entry screens.
OVERVIEW The ClinicalTrials.gov Protocol Registration System (PRS) is a web-based tool developed for submitting clinical trials information to ClinicalTrials.gov. This document provides step-by-step instructions
More informationLet s get started with the module Getting Data from Existing Sources.
Welcome to Data Academy. Data Academy is a series of online training modules to help Ryan White Grantees be more proficient in collecting, storing, and sharing their data. Let s get started with the module
More informationCreating Macro Calls using Proc Freq
Creating Macro Calls using Proc Freq, Educational Testing Service, Princeton, NJ ABSTRACT Imagine you were asked to get a series of statistics/tables for each country in the world. You have the data, but
More informationDr. Barbara Morgan Quantitative Methods
Dr. Barbara Morgan Quantitative Methods 195.650 Basic Stata This is a brief guide to using the most basic operations in Stata. Stata also has an on-line tutorial. At the initial prompt type tutorial. In
More informationStatistical Good Practice Guidelines. 1. Introduction. Contents. SSC home Using Excel for Statistics - Tips and Warnings
Statistical Good Practice Guidelines SSC home Using Excel for Statistics - Tips and Warnings On-line version 2 - March 2001 This is one in a series of guides for research and support staff involved in
More informationSAS System Powers Web Measurement Solution at U S WEST
SAS System Powers Web Measurement Solution at U S WEST Bob Romero, U S WEST Communications, Technical Expert - SAS and Data Analysis Dale Hamilton, U S WEST Communications, Capacity Provisioning Process
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 informationAn 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 informationUsing SAS/SCL to Create Flexible Programs... A Super-Sized Macro Ellen Michaliszyn, College of American Pathologists, Northfield, IL
Using SAS/SCL to Create Flexible Programs... A Super-Sized Macro Ellen Michaliszyn, College of American Pathologists, Northfield, IL ABSTRACT SAS is a powerful programming language. When you find yourself
More informationThe Proc Transpose Cookbook
ABSTRACT PharmaSUG 2017 - Paper TT13 The Proc Transpose Cookbook Douglas Zirbel, Wells Fargo and Co. Proc TRANSPOSE rearranges columns and rows of SAS datasets, but its documentation and behavior can be
More informationEXCELLING WITH ANALYSIS AND VISUALIZATION
EXCELLING WITH ANALYSIS AND VISUALIZATION A PRACTICAL GUIDE FOR DEALING WITH DATA Prepared by Ann K. Emery July 2016 Ann K. Emery 1 Welcome Hello there! In July 2016, I led two workshops Excel Basics for
More informationMake sure to keep all graphs in same excel file as your measures.
Project Part 2 Graphs. I. Use Excel to make bar graph for questions 1, and 5. II. Use Excel to make histograms for questions 2, and 3. III. Use Excel to make pie graphs for questions 4, and 6. IV. Use
More informationGET A GRIP ON MACROS IN JUST 50 MINUTES! Arthur Li, City of Hope Comprehensive Cancer Center, Duarte, CA
GET A GRIP ON MACROS IN JUST 50 MINUTES! Arthur Li, City of Hope Comprehensive Cancer Center, Duarte, CA ABSTRACT The SAS macro facility, which includes macro variables and macro programs, is the most
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 informationEffectively Utilizing Loops and Arrays in the DATA Step
Paper 1618-2014 Effectively Utilizing Loops and Arrays in the DATA Step Arthur Li, City of Hope National Medical Center, Duarte, CA ABSTRACT The implicit loop refers to the DATA step repetitively reading
More 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 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 informationSimplifying Your %DO Loop with CALL EXECUTE Arthur Li, City of Hope National Medical Center, Duarte, CA
PharmaSUG 2017 BB07 Simplifying Your %DO Loop with CALL EXECUTE Arthur Li, City of Hope National Medical Center, Duarte, CA ABSTRACT One often uses an iterative %DO loop to execute a section of a macro
More informationA SAS/AF Application for Linking Demographic & Laboratory Data For Participants in Clinical & Epidemiologic Research Studies
Paper 208 A SAS/AF Application for Linking Demographic & Laboratory Data For Participants in Clinical & Epidemiologic Research Studies Authors: Emily A. Mixon; Karen B. Fowler, University of Alabama at
More informationEcon Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva
Econ 329 - Stata Tutorial I: Reading, Organizing and Describing Data Sanjaya DeSilva September 8, 2008 1 Basics When you open Stata, you will see four windows. 1. The Results window list all the commands
More information1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file
1 SPSS Guide 2009 Content 1. Basic Steps for Data Analysis. 3 2. Data Editor. 2.4.To create a new SPSS file 3 4 3. Data Analysis/ Frequencies. 5 4. Recoding the variable into classes.. 5 5. Data Analysis/
More informationAcaStat User Manual. Version 8.3 for Mac and Windows. Copyright 2014, AcaStat Software. All rights Reserved.
AcaStat User Manual Version 8.3 for Mac and Windows Copyright 2014, AcaStat Software. All rights Reserved. http://www.acastat.com Table of Contents INTRODUCTION... 5 GETTING HELP... 5 INSTALLATION... 5
More informationFact Sheet No.1 MERLIN
Fact Sheet No.1 MERLIN Fact Sheet No.1: MERLIN Page 1 1 Overview MERLIN is a comprehensive software package for survey data processing. It has been developed for over forty years on a wide variety of systems,
More informationUse That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA
Paper DM09 Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA ABSTRACT In this electronic age we live in, we usually receive the detailed specifications from our biostatistician
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 informationLet s Get FREQy with our Statistics: Data-Driven Approach to Determining Appropriate Test Statistic
PharmaSUG 2018 - Paper EP-09 Let s Get FREQy with our Statistics: Data-Driven Approach to Determining Appropriate Test Statistic Richann Watson, DataRich Consulting, Batavia, OH Lynn Mullins, PPD, Cincinnati,
More informationData Analysis using SPSS
Data Analysis using SPSS 2073/03/05 03/07 Bijay Lal Pradhan, Ph.D. Ground Rule Mobile Penalty Participation Involvement Introduction to SPSS Day 1 2073/03/05 Session I Bijay Lal Pradhan, Ph.D. Object of
More informationData Should Not be a Four Letter Word Microsoft Excel QUICK TOUR
Toolbar Tour AutoSum + more functions Chart Wizard Currency, Percent, Comma Style Increase-Decrease Decimal Name Box Chart Wizard QUICK TOUR Name Box AutoSum Numeric Style Chart Wizard Formula Bar Active
More informationExcel 2007 Pivot Table Include New Items Manual Filter
Excel 2007 Pivot Table Include New Items Manual Filter Sample Excel VBA programming to change pivot table report filters. Instead of manually changing the report filters in a pivot table, you can use Excel
More informationCreating Forest Plots Using SAS/GRAPH and the Annotate Facility
PharmaSUG2011 Paper TT12 Creating Forest Plots Using SAS/GRAPH and the Annotate Facility Amanda Tweed, Millennium: The Takeda Oncology Company, Cambridge, MA ABSTRACT Forest plots have become common in
More informationSTEP 1 - /*******************************/ /* Manipulate the data files */ /*******************************/ <<SAS DATA statements>>
Generalized Report Programming Techniques Using Data-Driven SAS Code Kathy Hardis Fraeman, A.K. Analytic Programming, L.L.C., Olney, MD Karen G. Malley, Malley Research Programming, Inc., Rockville, MD
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 informationMultiple Imputation for Missing Data. Benjamin Cooper, MPH Public Health Data & Training Center Institute for Public Health
Multiple Imputation for Missing Data Benjamin Cooper, MPH Public Health Data & Training Center Institute for Public Health Outline Missing data mechanisms What is Multiple Imputation? Software Options
More informationQuality Control of Clinical Data Listings with Proc Compare
ABSTRACT Quality Control of Clinical Data Listings with Proc Compare Robert Bikwemu, Pharmapace, Inc., San Diego, CA Nicole Wallstedt, Pharmapace, Inc., San Diego, CA Checking clinical data listings with
More informationFrequency Tables. Chapter 500. Introduction. Frequency Tables. Types of Categorical Variables. Data Structure. Missing Values
Chapter 500 Introduction This procedure produces tables of frequency counts and percentages for categorical and continuous variables. This procedure serves as a summary reporting tool and is often used
More informationSAS (Statistical Analysis Software/System)
SAS (Statistical Analysis Software/System) SAS Analytics:- Class Room: Training Fee & Duration : 23K & 3 Months Online: Training Fee & Duration : 25K & 3 Months Learning SAS: Getting Started with SAS Basic
More informationTaming a Spreadsheet Importation Monster
SESUG 2013 Paper BtB-10 Taming a Spreadsheet Importation Monster Nat Wooding, J. Sargeant Reynolds Community College ABSTRACT As many programmers have learned to their chagrin, it can be easy to read Excel
More informationSAS CLINICAL SYLLABUS. DURATION: - 60 Hours
SAS CLINICAL SYLLABUS DURATION: - 60 Hours BASE SAS PART - I Introduction To Sas System & Architecture History And Various Modules Features Variables & Sas Syntax Rules Sas Data Sets Data Set Options Operators
More informationGoing Under the Hood: How Does the Macro Processor Really Work?
Going Under the Hood: How Does the Really Work? ABSTRACT Lisa Lyons, PPD, Inc Hamilton, NJ Did you ever wonder what really goes on behind the scenes of the macro processor, or how it works with other parts
More informationAn Application of PROC NLP to Survey Sample Weighting
An Application of PROC NLP to Survey Sample Weighting Talbot Michael Katz, Analytic Data Information Technologies, New York, NY ABSTRACT The classic weighting formula for survey respondents compensates
More informationHypermarket Retail Analysis Customer Buying Behavior. Reachout Analytics Client Sample Report
Hypermarket Retail Analysis Customer Buying Behavior Report Tools Used: R Python WEKA Techniques Applied: Comparesion Tests Association Tests Requirement 1: All the Store Brand significance to Gender Towards
More informationABSTRACT INTRODUCTION TRICK 1: CHOOSE THE BEST METHOD TO CREATE MACRO VARIABLES
An Efficient Method to Create a Large and Comprehensive Codebook Wen Song, ICF International, Calverton, MD Kamya Khanna, ICF International, Calverton, MD Baibai Chen, ICF International, Calverton, MD
More informationThe Power of Combining Data with the PROC SQL
ABSTRACT Paper CC-09 The Power of Combining Data with the PROC SQL Stacey Slone, University of Kentucky Markey Cancer Center Combining two data sets which contain a common identifier with a MERGE statement
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 informationAn Easy Route to a Missing Data Report with ODS+PROC FREQ+A Data Step Mike Zdeb, FSL, University at Albany School of Public Health, Rensselaer, NY
SESUG 2016 Paper BB-170 An Easy Route to a Missing Data Report with ODS+PROC FREQ+A Data Step Mike Zdeb, FSL, University at Albany School of Public Health, Rensselaer, NY ABSTRACT A first step in analyzing
More information17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA Document Variables Code Variables... 1
17 - Variables Contents 17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA... 1 Document Variables... 1 Code Variables... 1 The List of document variables and the List of code variables... 1 Managing
More informationPaper S Data Presentation 101: An Analyst s Perspective
Paper S1-12-2013 Data Presentation 101: An Analyst s Perspective Deanna Chyn, University of Michigan, Ann Arbor, MI Anca Tilea, University of Michigan, Ann Arbor, MI ABSTRACT You are done with the tedious
More informationThe DMSPLIT Procedure
The DMSPLIT Procedure The DMSPLIT Procedure Overview Procedure Syntax PROC DMSPLIT Statement FREQ Statement TARGET Statement VARIABLE Statement WEIGHT Statement Details Examples Example 1: Creating a Decision
More informationPharmaSUG 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 informationOmitting Records with Invalid Default Values
Paper 7720-2016 Omitting Records with Invalid Default Values Lily Yu, Statistics Collaborative Inc. ABSTRACT Many databases include default values that are set inappropriately. These default values may
More informationABSTRACT INTRODUCTION PROBLEM: TOO MUCH INFORMATION? math nrt scr. ID School Grade Gender Ethnicity read nrt scr
ABSTRACT A strategy for understanding your data: Binary Flags and PROC MEANS Glen Masuda, SRI International, Menlo Park, CA Tejaswini Tiruke, SRI International, Menlo Park, CA Many times projects have
More informationMR-2010I %MktMDiff Macro %MktMDiff Macro
MR-2010I %MktMDiff Macro 1105 %MktMDiff Macro The %MktMDiff autocall macro analyzes MaxDiff (maximum difference or best-worst) data (Louviere 1991, Finn and Louviere 1992). The result of the analysis is
More informationTutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models
Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models In this tutorial, we analyze data from a simple choice-based conjoint (CBC) experiment designed to estimate market shares (choice
More informationIntroduction 1. This policy applies, irrespective of length of service or duration of contract to:
Data Disclosure Control Policy Introduction 1. This policy applies, irrespective of length of service or duration of contract to: employees of HEFCW temporary or contract staff engaged by HEFCW, including
More informationTaming the Box Plot. Sanjiv Ramalingam, Octagon Research Solutions, Inc., Wayne, PA
Taming the Box Plot Sanjiv Ramalingam, Octagon Research Solutions, Inc., Wayne, PA ABSTRACT Box plots are used to portray the range, quartiles and outliers if any in the data. PROC BOXPLOT can be used
More informationSAS (Statistical Analysis Software/System)
SAS (Statistical Analysis Software/System) SAS Adv. Analytics or Predictive Modelling:- Class Room: Training Fee & Duration : 30K & 3 Months Online Training Fee & Duration : 33K & 3 Months Learning SAS:
More informationIntroduction to Statistical Analyses in SAS
Introduction to Statistical Analyses in SAS Programming Workshop Presented by the Applied Statistics Lab Sarah Janse April 5, 2017 1 Introduction Today we will go over some basic statistical analyses in
More informationPharmaSUG China 2018 Paper AD-62
PharmaSUG China 2018 Paper AD-62 Decomposition and Reconstruction of TLF Shells - A Simple, Fast and Accurate Shell Designer Chengeng Tian, dmed Biopharmaceutical Co., Ltd., Shanghai, China ABSTRACT Table/graph
More informationPharmaSUG China Paper 059
PharmaSUG China 2016 - Paper 059 Using SAS @ to Assemble Output Report Files into One PDF File with Bookmarks Sam Wang, Merrimack Pharmaceuticals, Inc., Cambridge, MA Kaniz Khalifa, Leaf Research Services,
More informationProve QC Quality Create SAS Datasets from RTF Files Honghua Chen, OCKHAM, Cary, NC
Prove QC Quality Create SAS Datasets from RTF Files Honghua Chen, OCKHAM, Cary, NC ABSTRACT Since collecting drug trial data is expensive and affects human life, the FDA and most pharmaceutical company
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 information